java.lang.NullPointerException

Exception #2448970

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via GitHub by kmenager
    ,
  • via GitHub by k0shk0sh
    ,
  • Stack trace

    • java.lang.NullPointerException at android.os.Message.sendToTarget(Message.java:416) at org.robolectric.shadows.ShadowMessenger.send(ShadowMessenger.java:24) at android.os.Messenger.send(Messenger.java) at org.altbeacon.beacon.BeaconManager.startMonitoringBeaconsInRegion(BeaconManager.java:534) at org.altbeacon.beacon.startup.RegionBootstrap$InternalBeaconConsumer.onBeaconServiceConnect(RegionBootstrap.java:113) at org.altbeacon.beacon.BeaconManager$BeaconServiceConnection.onServiceConnected(BeaconManager.java:785) at org.robolectric.shadows.ShadowApplication$1.run(ShadowApplication.java:236) at org.robolectric.util.Scheduler.runOrQueueRunnable(Scheduler.java:293) at org.robolectric.util.Scheduler.postDelayed(Scheduler.java:143) at org.robolectric.shadows.ShadowLooper.post(ShadowLooper.java:261) at org.robolectric.shadows.ShadowApplication.bindService(ShadowApplication.java:225) at org.robolectric.shadows.ShadowContextImpl.bindService(ShadowContextImpl.java:217) at android.app.ContextImpl.bindService(ContextImpl.java) at android.content.ContextWrapper.bindService(ContextWrapper.java:604) at org.altbeacon.beacon.startup.RegionBootstrap$InternalBeaconConsumer.bindService(RegionBootstrap.java:130) at org.altbeacon.beacon.BeaconManager.bind(BeaconManager.java:307) at org.altbeacon.beacon.startup.RegionBootstrap.<init>(RegionBootstrap.java:57) at com.myapp.MyApplication.onCreate(MyApplication.java:100) at org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:165) at org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:423) at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:254) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:191) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:56) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:157) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.