-
Notifications
You must be signed in to change notification settings - Fork 575
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
nativeScanResults may be null #820
Labels
bug
Bug that is caused by the library
Comments
huangkeyuan
changed the title
nativeScanResults may be empty
nativeScanResults may be null
Feb 16, 2023
Do you resolve it? I'm encountering this issue as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java.lang.RuntimeException: Unable to start receiver com.polidea.rxandroidble2.sample.example1a_background_scanning.ScanReceiver: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4315)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2153)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
at com.polidea.rxandroidble2.internal.scan.BackgroundScannerImpl.onScanResultReceived(BackgroundScannerImpl.java:92)
at com.polidea.rxandroidble2.sample.example1a_background_scanning.ScanReceiver.onReceive(ScanReceiver.java:24)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4306)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2153)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
The text was updated successfully, but these errors were encountered: