Skip to content

java.lang.Thread$State java.lang.Thread.getState()' on a null object reference #7

@tan1X

Description

@tan1X

The implementation used to work fine, but then I upgraded gradle to 4.1.1 and i kept getting this error

Screen Shot 2020-11-19 at 17 52 21

Maybe this could help over CameraSource.java

    @SuppressLint("Assert")
    void release() {
        assert (mProcessingThread == null || mProcessingThread.getState() == State.TERMINATED);
        if (mDetector != null) {
            mDetector.release();
            mDetector = 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