question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRASH java.lang.NullPointerException: Attempt to invoke interface method 'void

See original GitHub issue
java.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:open
  • Created 3 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rymesaintcommented, Jun 8, 2020

i got this issue too

0reactions
AmolGangadharecommented, Apr 24, 2021

Please check with v 2.0.0 if the issue still there. Potential fix has been made.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found