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.

NullPointerException while starting scanner on Android 12 DP3

See original GitHub issue

Hello,

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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
philips77commented, Jun 4, 2021

Fixed in 1.4.4.

1reaction
mtrewarthacommented, May 19, 2021

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

Read more comments on GitHub >

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

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