{"action":"created","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/140","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/140/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/140/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/140","id":64511081,"number":140,"title":"Null Pointer exception after executing regionBootstrap.disable() [Randomly]","user":{"login":"jayshildave","id":715091,"avatar_url":"https://avatars.githubusercontent.com/u/715091?v=3","gravatar_id":"","url":"https://api.github.com/users/jayshildave","html_url":"https://github.com/jayshildave","followers_url":"https://api.github.com/users/jayshildave/followers","following_url":"https://api.github.com/users/jayshildave/following{/other_user}","gists_url":"https://api.github.com/users/jayshildave/gists{/gist_id}","starred_url":"https://api.github.com/users/jayshildave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayshildave/subscriptions","organizations_url":"https://api.github.com/users/jayshildave/orgs","repos_url":"https://api.github.com/users/jayshildave/repos","events_url":"https://api.github.com/users/jayshildave/events{/privacy}","received_events_url":"https://api.github.com/users/jayshildave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-26T12:11:55Z","updated_at":"2015-03-26T12:37:49Z","closed_at":null,"body":"Null pointer exception is randomly raised after executing stop ranging (possibly after stop monitoring as well) when using the latest altBeacon trunk source code from Github 2.1.4\r\n\r\nIts in link with issue #25 where it was being crashed in the same method.\r\nNow the crash is on line no. 391 in method processBeaconFromScan from the asynctask.\r\nThe null pointer happens while reading state inside monitoredRegionState.\r\n\r\nCurrently we are synchronising reading rangedRegionState but monitoredRegionState is not given the same safeguard for multiple threaded operations."},"comment":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/comments/86493070","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/140#issuecomment-86493070","issue_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/140","id":86493070,"user":{"login":"jayshildave","id":715091,"avatar_url":"https://avatars.githubusercontent.com/u/715091?v=3","gravatar_id":"","url":"https://api.github.com/users/jayshildave","html_url":"https://github.com/jayshildave","followers_url":"https://api.github.com/users/jayshildave/followers","following_url":"https://api.github.com/users/jayshildave/following{/other_user}","gists_url":"https://api.github.com/users/jayshildave/gists{/gist_id}","starred_url":"https://api.github.com/users/jayshildave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayshildave/subscriptions","organizations_url":"https://api.github.com/users/jayshildave/orgs","repos_url":"https://api.github.com/users/jayshildave/repos","events_url":"https://api.github.com/users/jayshildave/events{/privacy}","received_events_url":"https://api.github.com/users/jayshildave/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T12:37:49Z","updated_at":"2015-03-26T12:37:49Z","body":"The stack trace is \r\njava.lang.RuntimeException: An error occured\r\nwhile executing doInBackground()\r\n\tat android.os.AsyncTask$3.done(AsyncTask.java:300)\r\n\tat java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)\r\n\tat java.util.concurrent.FutureTask.setException(FutureTask.java:222)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:242)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n\tat java.lang.Thread.run(Thread.java:841)\r\nCaused by: java.lang.NullPointerException\r\n\tat org.altbeacon.beacon.service.BeaconService.processBeaconFromScan(BeaconService.java:391)\r\n\tat org.altbeacon.beacon.service.BeaconService.access$400(BeaconService.java:66)\r\n\tat org.altbeacon.beacon.service.BeaconService$ScanProcessor.doInBackground(BeaconService.java:439)\r\n\tat org.altbeacon.beacon.service.BeaconService$ScanProcessor.doInBackground(BeaconService.java:422)\r\n\tat android.os.AsyncTask$2.call(AsyncTask.java:288)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\t... 3 more\r\n\r\nAnd I am compiling the latest source code from trunk."}}