NullPointerException while starting scanner on Android 12 DP3
See original GitHub issueHello,
While testing our application on Android 12 DP3, we have observed a NullPointerException at scanner start. It comes from the creation of the native ScanFilter without any device address filter.
Investigating a bit, it comes from Google API changes on ScanFilter.Builder.setDeviceAddress. With last changes, calling it with null device address will always throw a NullPointerException
I have created an issue on Google issue tracker : https://issuetracker.google.com/issues/186574846
If this issue is not fixed on Google side, it might be important to check for nullability before creating the ScanFilter : ScanFilter creation
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Android 12 API 31 Splash Screen NullPointerException
One reason that can cause this problem is not putting the splash screen install as the first item in the onCreate lifecycle function....
Read more >Service | Android Developers
The Service object itself does not imply it is running in its own process; ... These directories still exist and are scanned, but...
Read more >Cannot start debug (9.5.1.1) - Forums - IBM Support
I've recently upgraded to 9.5.1.1 and today have tried to start a debug session for the first time since upgrading, and it seems...
Read more >Diff - platform/frameworks/base - Google Git
Merge "Call storeMetaDataInVideoBuffers() before get/setParameters() on index OMX_IndexParamPortDefinition" diff --git a/Android.mk b/Android.mk index ...
Read more >Feature #1811: implement the AJAX client driver - User Interface
mag_upd20131112a.zip (18.9 KB) Marius Gligor, 11/12/2013 12:09 PM ... Each P2J client thus has its own process, running in the context of the...
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 Free
Top 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

Fixed in 1.4.4.
Bummer, looks like Android 12 Beta 1 didn’t fix the issue.