CRASH java.lang.NullPointerException: Attempt to invoke interface method 'void
See original GitHub issuejava.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.EventChannel$EventSink.success(java.lang.Object)' on a null object reference
E/AndroidRuntime(32669): at com.amolg.flutterbarcodescanner.FlutterBarcodeScannerPlugin$1.run(FlutterBarcodeScannerPlugin.java:201)
E/AndroidRuntime(32669): at android.os.Handler.handleCallback(Handler.java:883)
E/AndroidRuntime(32669): at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime(32669): at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime(32669): at android.app.ActivityThread.main(ActivityThread.java:7857)
E/AndroidRuntime(32669): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32669): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(32669): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
I/Process (32669): Sending signal. PID: 32669 SIG: 9
Lost connection to device.
what i try to do is stream barcodes and get only qrcode not standart ean carcodes.
String res = await FlutterBarcodeScanner.getBarcodeStreamReceiver(
"#ff6666", "Cancel", true, ScanMode.QR)
.firstWhere((code) {
print("singleWhere $code");
if (code.toString().startsWith("http")) {
print("founded");
return true;
}
return false;
});
using latest version 1.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Android:NullPointerException: Attempt to invoke interface ...
Sometimes the app crashes and I get the following error in the logcat java.lang.NullPointerException: Attempt to invoke interface method ...
Read more >1233048 - crash in java.lang.NullPointerException
NullPointerException : Attempt to invoke interface method ''int android.database.Cursor.getCount()'' on a null object reference at org.mozilla.gecko.preferences.
Read more >Attempt to invoke interface method 'void android.view ...
java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.IWindowSession.finishDrawing(android.view.IWindow)' on a null object ...
Read more >App Crash Join meeting with param - Zoom Developer Forum
when i start the app and crash it show null pointer exception i dont know why. java.lang.NullPointerException: Attempt to invoke interface ...
Read more >Visualizer version: 9.3.32 crashed - Temenos Basecamp
MessageQueue-JNI: java.lang.NullPointerException: Attempt to invoke interface method 'void com.konylabs.api.ui.el$b.mi()' on a null object reference.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i got this issue too
Please check with v 2.0.0 if the issue still there. Potential fix has been made.