{"action":"created","issue":{"url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/87","repository_url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library","labels_url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/87/comments","events_url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/87/events","html_url":"https://github.com/NordicSemiconductor/Android-DFU-Library/issues/87","id":272907757,"number":87,"title":"setDisableNotification(true) not working anymore","user":{"login":"fabriceimperial","id":16781085,"avatar_url":"https://avatars2.githubusercontent.com/u/16781085?v=4","gravatar_id":"","url":"https://api.github.com/users/fabriceimperial","html_url":"https://github.com/fabriceimperial","followers_url":"https://api.github.com/users/fabriceimperial/followers","following_url":"https://api.github.com/users/fabriceimperial/following{/other_user}","gists_url":"https://api.github.com/users/fabriceimperial/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriceimperial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriceimperial/subscriptions","organizations_url":"https://api.github.com/users/fabriceimperial/orgs","repos_url":"https://api.github.com/users/fabriceimperial/repos","events_url":"https://api.github.com/users/fabriceimperial/events{/privacy}","received_events_url":"https://api.github.com/users/fabriceimperial/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-10T11:48:58Z","updated_at":"2017-11-16T17:29:01Z","closed_at":"2017-11-16T17:29:01Z","author_association":"NONE","body":"Hi,\r\nit seems that the value of `.setDisableNotification(true)` from the _DfuServiceInitiator_ is not taken into account and therefore the `null` value returned by the `getNotificationTarget()` in the _DfuService_ class extending the _DfuBaseService_ crash the application.\r\n\r\n```\r\nFATAL EXCEPTION: IntentService[DfuBaseService]\r\nProcess: com.example.myapplication, PID: 31396\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Class.getName()' on a null object reference\r\n    at android.content.ComponentName.<init>(ComponentName.java:129)\r\n    at android.content.Intent.<init>(Intent.java:4449)\r\n    at no.nordicsemi.android.dfu.DfuBaseService.startForeground(DfuBaseService.java:1500)\r\n    at no.nordicsemi.android.dfu.DfuBaseService.onHandleIntent(DfuBaseService.java:925)\r\n    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)\r\n    at android.os.Handler.dispatchMessage(Handler.java:102)\r\n    at android.os.Looper.loop(Looper.java:148)\r\n    at android.os.HandlerThread.run(HandlerThread.java:61)\r\n```\r\n\r\nIt works well with the dfu 1.3.X and 1.4.X\r\n\r\n**System:**\r\n```\r\nAndroid 6.0.1\r\ncompileSdkVersion 26\r\nbuildToolsVersion '26.0.2'\r\nminSdkVersion 18\r\ntargetSdkVersion 25\r\ndfu 1.5.X\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/comments/344997550","html_url":"https://github.com/NordicSemiconductor/Android-DFU-Library/issues/87#issuecomment-344997550","issue_url":"https://api.github.com/repos/NordicSemiconductor/Android-DFU-Library/issues/87","id":344997550,"user":{"login":"fabriceimperial","id":16781085,"avatar_url":"https://avatars2.githubusercontent.com/u/16781085?v=4","gravatar_id":"","url":"https://api.github.com/users/fabriceimperial","html_url":"https://github.com/fabriceimperial","followers_url":"https://api.github.com/users/fabriceimperial/followers","following_url":"https://api.github.com/users/fabriceimperial/following{/other_user}","gists_url":"https://api.github.com/users/fabriceimperial/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriceimperial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriceimperial/subscriptions","organizations_url":"https://api.github.com/users/fabriceimperial/orgs","repos_url":"https://api.github.com/users/fabriceimperial/repos","events_url":"https://api.github.com/users/fabriceimperial/events{/privacy}","received_events_url":"https://api.github.com/users/fabriceimperial/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T17:29:01Z","updated_at":"2017-11-16T17:29:01Z","author_association":"NONE","body":"Great! Thank you _philips77_"}}
{"actor":{"display_login":"fabriceimperial"}}