Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to start activity ComponentInfo - java.lang.NullPointerException #67

Open
2 of 4 tasks
walteram opened this issue Mar 27, 2023 · 1 comment
Open
2 of 4 tasks
Labels
bug Something isn't working

Comments

@walteram
Copy link

BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!

Describe the bug
Firebase is reporting a Fatal Exception when some users try to scan a barcode in my app, in the moment the activity should be opened. Until now, this error only happened in Nexus 5X with Android 8.1.0, and is not widespread (other devices are not showing this behavior). I coudn't reproduce the error, but I decided to open the bug report anyway so any help would be appreciated.

To Reproduce
The bug is not reproducible.

Expected behavior
Open

Screenshots
n/a

Logs
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxxx.app/de.mintware.barcode_scan.BarcodeScannerActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
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:807)

Caused by java.lang.NullPointerException:
at de.mintware.barcode_scan.BarcodeScannerActivity.onCreate(BarcodeScannerActivity.java:50)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
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:807)

Environment (please complete the following information):

  • iOS? Version: ...
  • Android? Version: 8.1.0
  • Real Device? Which?: Nexus 5X
  • Emulator/Simulator? Which?: ...
  • Version of barcode_scan: 4.2.4
  • Output of flutter --version:
Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2ad6cd72c0 (3 weeks ago) • 2023-03-08 09:41:59 -0800
Engine • revision 1837b5be5f
Tools • Dart 2.19.4 • DevTools 2.20.1

Additional context
n/a

@walteram walteram added the bug Something isn't working label Mar 27, 2023
@Letalus
Copy link

Letalus commented May 12, 2023

Could it be that this is some emulator issue?
Because Nexus 5 is normally used from automatic tests from google.
Can you double check, if this is the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants