Commit 456c56fe authored by Alexander Smorkalov's avatar Alexander Smorkalov

NullPointerException in case of error on opening native camera fixed.

parent 5ce4e3c2
......@@ -53,6 +53,7 @@ public class NativeCameraView extends CameraBridgeViewBase {
/* 1. We need to stop thread which updating the frames
* 2. Stop camera and release it
*/
if (mThread != null) {
try {
mStopThread = true;
mThread.join();
......@@ -62,6 +63,7 @@ public class NativeCameraView extends CameraBridgeViewBase {
mThread = null;
mStopThread = false;
}
}
/* Now release camera */
releaseCamera();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment