MobileVisionBarcodeScannerhttps://github.com/KingsMentor/MobileVisionBarcodeScanner is being used to scan a QR code and has been working successfully without any problems until Android Gradle Plugin was updated to 4.1.0
It happens as follow
- The scanner activity is opened
- Press back to close
- Crash with the follow stacktrace
java.lang.RuntimeException: Unable to destroy activity {com.robusta.befit/com.robusta.befit.features.scanner.ScannerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference at com.google.android.gms.samples.vision.barcodereader.ui.camera.CameraSource$FrameProcessingRunnable.release(CameraSource.java:1117) at com.google.android.gms.samples.vision.barcodereader.ui.camera.CameraSource.release(CameraSource.java:327) at com.google.android.gms.samples.vision.barcodereader.ui.camera.CameraSourcePreview.release(CameraSourcePreview.java:84) at com.google.android.gms.samples.vision.barcodereader.BarcodeCapture.onDestroy(BarcodeCapture.java:308)
