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: 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 issue

Hi,

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:20

github_iconTop GitHub Comments

5reactions
jacobbeasleycommented, Jun 7, 2018

By the way, I just wanted to comment on how useful a project this is. Thanks for all of your work putting it together!

0reactions
akimabscommented, Mar 24, 2022

any update ?

Read more comments on GitHub >

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

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