{"action":"created","issue":{"url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/210","repository_url":"https://api.github.com/repos/zo0r/react-native-push-notification","labels_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/210/comments","events_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/210/events","html_url":"https://github.com/zo0r/react-native-push-notification/pull/210","id":178494932,"number":210,"title":"Do not crash nonstandard android runtimes","user":{"login":"igrayson","id":6943580,"avatar_url":"https://avatars.githubusercontent.com/u/6943580?v=3","gravatar_id":"","url":"https://api.github.com/users/igrayson","html_url":"https://github.com/igrayson","followers_url":"https://api.github.com/users/igrayson/followers","following_url":"https://api.github.com/users/igrayson/following{/other_user}","gists_url":"https://api.github.com/users/igrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/igrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrayson/subscriptions","organizations_url":"https://api.github.com/users/igrayson/orgs","repos_url":"https://api.github.com/users/igrayson/repos","events_url":"https://api.github.com/users/igrayson/events{/privacy}","received_events_url":"https://api.github.com/users/igrayson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T00:35:30Z","updated_at":"2016-10-14T17:27:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zo0r/react-native-push-notification/pulls/210","html_url":"https://github.com/zo0r/react-native-push-notification/pull/210","diff_url":"https://github.com/zo0r/react-native-push-notification/pull/210.diff","patch_url":"https://github.com/zo0r/react-native-push-notification/pull/210.patch"},"body":"This adds more safety to badge setting on android.\r\n\r\nWe saw the following crash on a ZTE Z970 (android 4.4):\r\n\r\n```\r\njava.lang.NullPointerException: null\r\n    at com.dieam.reactnativepushnotification.helpers.ApplicationBadgeHelper.setApplicationIconBadgeNumber(ApplicationBadgeHelper.java:41)\r\n    at com.dieam.reactnativepushnotification.modules.RNPushNotification.setApplicationIconBadgeNumber(RNPushNotification.java:181)\r\n    at java.lang.reflect.Method.invokeNative(Method.java)\r\n    at java.lang.reflect.Method.invoke(Method.java:515)\r\n    at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:319)\r\n    at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:187)\r\n    at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:62)\r\n    at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:420)\r\n    at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(NativeRunnableDeprecated.java)\r\n    at android.os.Handler.handleCallback(Handler.java:733)\r\n    at android.os.Handler.dispatchMessage(Handler.java:95)\r\n    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)\r\n    at android.os.Looper.loop(Looper.java:136)\r\n    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:197)\r\n    at java.lang.Thread.run(Thread.java:841)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/comments/253867150","html_url":"https://github.com/zo0r/react-native-push-notification/pull/210#issuecomment-253867150","issue_url":"https://api.github.com/repos/zo0r/react-native-push-notification/issues/210","id":253867150,"user":{"login":"igrayson","id":6943580,"avatar_url":"https://avatars.githubusercontent.com/u/6943580?v=3","gravatar_id":"","url":"https://api.github.com/users/igrayson","html_url":"https://github.com/igrayson","followers_url":"https://api.github.com/users/igrayson/followers","following_url":"https://api.github.com/users/igrayson/following{/other_user}","gists_url":"https://api.github.com/users/igrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/igrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrayson/subscriptions","organizations_url":"https://api.github.com/users/igrayson/orgs","repos_url":"https://api.github.com/users/igrayson/repos","events_url":"https://api.github.com/users/igrayson/events{/privacy}","received_events_url":"https://api.github.com/users/igrayson/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T17:27:47Z","updated_at":"2016-10-14T17:27:47Z","body":"Any update?"}}
{"actor":{"display_login":"igrayson"}}