{"action":"created","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/197","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/197/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/197/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/197","id":81435174,"number":197,"title":"NullPointerException in Samsung Galaxy Note 4 - Android 5.0.1","user":{"login":"marcelorbenites","id":6514713,"avatar_url":"https://avatars.githubusercontent.com/u/6514713?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelorbenites","html_url":"https://github.com/marcelorbenites","followers_url":"https://api.github.com/users/marcelorbenites/followers","following_url":"https://api.github.com/users/marcelorbenites/following{/other_user}","gists_url":"https://api.github.com/users/marcelorbenites/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelorbenites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelorbenites/subscriptions","organizations_url":"https://api.github.com/users/marcelorbenites/orgs","repos_url":"https://api.github.com/users/marcelorbenites/repos","events_url":"https://api.github.com/users/marcelorbenites/events{/privacy}","received_events_url":"https://api.github.com/users/marcelorbenites/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/labels/platform%20issue","name":"platform issue","color":"207de5"},{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/labels/priority","name":"priority","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-27T13:02:10Z","updated_at":"2015-06-18T16:57:32Z","closed_at":"2015-06-18T16:57:32Z","body":"Hi,\r\n\r\nI have recurrent NullPointerExceptions with the following stack trace using Samsung Galaxy Note 4 with Android 5.0.1 using version 2.1.3 of android-beacon-library. There was not problem before the update to version 5.0.1.\r\n\r\n    java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.bluetooth.IBluetooth.isOffloadedFilteringSupported()' on a null object reference\r\n       at android.bluetooth.BluetoothAdapter.isOffloadedFilteringSupported(BluetoothAdapter.java:1231)\r\n       at android.bluetooth.le.BluetoothLeScanner.isSettingsConfigAllowedForScan(BluetoothLeScanner.java:402)\r\n       at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:126)\r\n       at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:102)\r\n       at org.altbeacon.beacon.service.scanner.CycledLeScannerForLollipop.boolean deferScanIfNeeded()()\r\n       at org.altbeacon.beacon.service.scanner.CycledLeScanner.org.altbeacon.beacon.service.scanner.CycledLeScanner createScanner(android.content.Context,long,long,boolean,org.altbeacon.beacon.service.scanner.CycledLeScanCallback,com.useaurea.bluetooth.BluetoothCrashResolver)()\r\n                                                              void setScanPeriods(long,long,boolean)\r\n                                                              void start()\r\n                                                              void scanLeDevice(java.lang.Boolean)\r\n       at org.altbeacon.beacon.service.scanner.CycledLeScanner.void finishScanCycle()()\r\n       at org.altbeacon.beacon.service.scanner.CycledLeScanner.void scheduleScanCycleStop()()\r\n       at org.altbeacon.beacon.service.scanner.CycledLeScanner$1.void run()()\r\n       at android.os.Handler.handleCallback(Handler.java:739)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5944)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)"},"comment":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/comments/113219702","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/197#issuecomment-113219702","issue_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/197","id":113219702,"user":{"login":"davidgyoung","id":1044849,"avatar_url":"https://avatars.githubusercontent.com/u/1044849?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgyoung","html_url":"https://github.com/davidgyoung","followers_url":"https://api.github.com/users/davidgyoung/followers","following_url":"https://api.github.com/users/davidgyoung/following{/other_user}","gists_url":"https://api.github.com/users/davidgyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgyoung/subscriptions","organizations_url":"https://api.github.com/users/davidgyoung/orgs","repos_url":"https://api.github.com/users/davidgyoung/repos","events_url":"https://api.github.com/users/davidgyoung/events{/privacy}","received_events_url":"https://api.github.com/users/davidgyoung/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T16:57:32Z","updated_at":"2015-06-18T16:57:32Z","body":"Fix attempted per https://github.com/AltBeacon/android-beacon-library/pull/200\r\n\r\nSince I cannot reproduce please reopen if this does not resolve the problem."}}