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

Stack Overflow | Maki | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android - ZXing Scanner error in stopCamera inside onPause

    Stack Overflow | 7 months ago | Maki
    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

    Root Cause Analysis

    1. 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()
    2. com.busticketing.busticketing
      MainActivity.onPause
      1. com.busticketing.busticketing.MainActivity.onPause(MainActivity.java:160)
      1 frame
    3. Android Platform
      ActivityThread.performPauseActivity
      1. android.app.Activity.performPause(Activity.java:6373)
      2. android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1308)
      3. android.app.ActivityThread.performPauseActivity(ActivityThread.java:3645)
      3 frames