mirror of
https://github.com/zxing/zxing.git
synced 2025-01-27 11:01:00 -08:00
More for Issue 1044 -- avoid another possible NPE though I don't think the underlyling issue has been found yet
git-svn-id: https://zxing.googlecode.com/svn/trunk@2010 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
c79fb8474b
commit
86034a4442
|
@ -108,7 +108,10 @@ public final class CaptureActivityHandler extends Handler {
|
|||
|
||||
public void quitSynchronously() {
|
||||
state = State.DONE;
|
||||
CameraManager.get().stopPreview();
|
||||
CameraManager cameraManager = CameraManager.get();
|
||||
if (cameraManager != null) {
|
||||
cameraManager.stopPreview();
|
||||
}
|
||||
Message quit = Message.obtain(decodeThread.getHandler(), R.id.quit);
|
||||
quit.sendToTarget();
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue