Crash: Attempt to invoke virtual method 'void android.telephony.TelephonyManager.listen(android.telephony.PhoneStateListener, int)' on a null object reference com.pritesh.calldetection.CallDetectionManagerModule.stopListener
See original GitHub issueHi,
sometimes a mysterious crash happens on android devices, there is no scenario to reproduce it,
mb we should add an additional if statement
to prevent this crash ?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:20
Top Results From Across the Web
Android telephony manager Crashes - Stack Overflow
replace this line private TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); private ...
Read more >PhoneStateListener - Android Developers
Use TelephonyCallback instead. A listener class for monitoring changes in specific telephony states on the device, including service state, signal strength, ...
Read more >Crash with "When near cell" block - Google Groups
NullPointerException: Attempt to invoke virtual method 'java.util.List android.telephony.TelephonyManager.getAllCellInfo()' on a null object reference
Read more >TelephonyManager.Listen(PhoneStateListener ...
Registers a listener object to receive notification of changes in specified telephony states.
Read more >Android 12 Telephony Crash - Unity Forum
telephony.PhoneStateListener, int) (TelephonyManager.java:6798). at void com.unity3d.player.UnityPlayer.addPhoneCallListener() ((null):- ...
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
By the way, I just wanted to comment on how useful a project this is. Thanks for all of your work putting it together!
any update ?