java.lang.NullPointerException: Attempt to invoke virtual method 'void org.altbeacon.beacon.BeaconManager.setBackgroundMode(boolean)' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jeffkelsey
, 11 months ago
Attempt to invoke virtual method 'void org.altbeacon.beacon.BeaconManager.setBackgroundMode(boolean)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void org.altbeacon.beacon.BeaconManager.setBackgroundMode(boolean)' on a null object reference
at org.altbeacon.beacon.powersave.BackgroundPowerSaver.onActivityPaused(SourceFile:76)
at android.app.Application.dispatchActivityPaused(Application.java:247)
at android.app.Activity.onPause(Activity.java:1652)
at com.ticketmaster.mobile.android.library.activity.DrawerActivity.onPause(SourceFile:223)
at com.ticketmaster.mobile.android.library.activity.MainActivity.onPause(SourceFile:218)
at android.app.Activity.performPause(Activity.java:7033)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1339)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4572)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4545)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4520)
at android.app.ActivityThread.access$1300(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1805)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.