Skip to content

FrameProcessing Thread is null on release #466

Open
@sharmad1205

Description

@sharmad1205

Calling BarcodeCaptureActivity as startActivityForResult causing... NPE

Unable to destroy activity {....activities.BarcodeCapture.BarcodeCaptureActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference.
on CameraSource.java --->FrameProcessingRunnable
@SuppressLint("Assert")
void release() {
assert (mProcessingThread.getState() == State.TERMINATED);
mDetector.release();
mDetector = null;
}
mProcessingThread is null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions