zxing-android-embedded icon indicating copy to clipboard operation
zxing-android-embedded copied to clipboard

NullPointerException: Attempt to invoke interface method on a null object reference

Open mattfiocca opened this issue 4 years ago • 0 comments

Stack trace:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'void com.journeyapps.barcodescanner.a.a(java.util.List)' on a null object reference
       at com.journeyapps.barcodescanner.DecoratedBarcodeView$WrappedCallback.a(DecoratedBarcodeView.java:28)
       at com.journeyapps.barcodescanner.BarcodeView$1.handleMessage(BarcodeView.java:93)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at androidx.test.espresso.base.Interrogator.a(Interrogator.java:11)
       at androidx.test.espresso.base.UiControllerImpl.n(UiControllerImpl.java:6)
       at androidx.test.espresso.base.UiControllerImpl.m(UiControllerImpl.java:1)
       at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:6)
       at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:15)
       at androidx.test.espresso.action.Tap.b(Tap.java:10)
       at androidx.test.espresso.action.Tap$1.sendTap(Tap.java:1)
       at androidx.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:4)
       at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:4)
       at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:137)
       at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:4)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at android.os.Handler.handleCallback(Handler.java:790)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6523)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)

When we submit updates of our app to Google Play store for review, their automated test bots trigger this NPE pretty consistently. I'm not sure if it has anything to do with headless systems or not. We don't ever see this when a human user is using our app.

com.journeyapps:zxing-android-embedded:3.6.0 gradle dependency Android app targeting api 29.

Our current crashlytics reported this on a Nokia 1, Android 8.1.0, but I do believe we've seen this come through any number of devices that google is using to automate app update testing. We also get notified in Google's Pre-launch report that there was a device or two that crashed with this error.

mattfiocca avatar Nov 05 '20 15:11 mattfiocca