java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.RuntimeException: Unable to pause activity {com.busticketing.busticketing/com.busticketing.busticketing.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void me.dm7.barcodescanner.zxing.ZXingScannerView.stopCamera()' on a null object reference at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3659) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3618) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3593) at android.app.ActivityThread.access$1100(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1433) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5832) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void me.dm7.barcodescanner.zxing.ZXingScannerView.stopCamera()' on a null object reference at com.busticketing.busticketing.MainActivity.onPause(MainActivity.java:160) at android.app.Activity.performPause(Activity.java:6373) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1308) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3645)
    No Bugmate found.