{"action":"created","issue":{"url":"https://api.github.com/repos/urbanairship/android-library/issues/27","repository_url":"https://api.github.com/repos/urbanairship/android-library","labels_url":"https://api.github.com/repos/urbanairship/android-library/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/urbanairship/android-library/issues/27/comments","events_url":"https://api.github.com/repos/urbanairship/android-library/issues/27/events","html_url":"https://github.com/urbanairship/android-library/issues/27","id":264489188,"number":27,"title":"NullPointerException in ActionButtonGroupsParser.fromXml()","user":{"login":"korre","id":9155705,"avatar_url":"https://avatars1.githubusercontent.com/u/9155705?v=4","gravatar_id":"","url":"https://api.github.com/users/korre","html_url":"https://github.com/korre","followers_url":"https://api.github.com/users/korre/followers","following_url":"https://api.github.com/users/korre/following{/other_user}","gists_url":"https://api.github.com/users/korre/gists{/gist_id}","starred_url":"https://api.github.com/users/korre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korre/subscriptions","organizations_url":"https://api.github.com/users/korre/orgs","repos_url":"https://api.github.com/users/korre/repos","events_url":"https://api.github.com/users/korre/events{/privacy}","received_events_url":"https://api.github.com/users/korre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-11T07:53:48Z","updated_at":"2017-10-12T07:35:08Z","closed_at":null,"author_association":"NONE","body":"I'm seeing some crashes on different devices in crashlytics. It happens on different Android versions as well, ranging from Android 5 to 7.\r\n\r\nWe're running Urban Airship version: 8.6.1\r\n\r\nAs far as I can see you've wrapped the code in fromXml in a try/catch but is not catching this particular error. Any ideas how we should handle this? It's on our top 3 crashes at the moment.\r\n\r\nThe stacktrace looks like this:\r\n\r\n`Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.content.res.StringBlock.get(int)' on a null object reference\r\n       at android.content.res.AssetManager.getResourceValue(AssetManager.java:201)\r\n       at android.content.res.Resources.getValue(Resources.java:1397)\r\n       at android.content.res.Resources.loadXmlResourceParser(Resources.java:2882)\r\n       at android.content.res.Resources.getXml(Resources.java:1264)\r\n       at com.urbanairship.push.ActionButtonGroupsParser.fromXml(ActionButtonGroupsParser.java:49)\r\n       at com.urbanairship.push.PushManager.(PushManager.java)\r\n       at com.urbanairship.push.PushManager.(PushManager.java)\r\n       at com.urbanairship.UAirship.init(UAirship.java:582)\r\n       at com.urbanairship.UAirship.executeTakeOff(UAirship.java:365)\r\n       at com.urbanairship.UAirship.access$000(UAirship.java:45)\r\n       at com.urbanairship.UAirship$2.run(UAirship.java:325)\r\n       at java.lang.Thread.run(Thread.java:818)`"},"comment":{"url":"https://api.github.com/repos/urbanairship/android-library/issues/comments/336046071","html_url":"https://github.com/urbanairship/android-library/issues/27#issuecomment-336046071","issue_url":"https://api.github.com/repos/urbanairship/android-library/issues/27","id":336046071,"user":{"login":"korre","id":9155705,"avatar_url":"https://avatars1.githubusercontent.com/u/9155705?v=4","gravatar_id":"","url":"https://api.github.com/users/korre","html_url":"https://github.com/korre","followers_url":"https://api.github.com/users/korre/followers","following_url":"https://api.github.com/users/korre/following{/other_user}","gists_url":"https://api.github.com/users/korre/gists{/gist_id}","starred_url":"https://api.github.com/users/korre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korre/subscriptions","organizations_url":"https://api.github.com/users/korre/orgs","repos_url":"https://api.github.com/users/korre/repos","events_url":"https://api.github.com/users/korre/events{/privacy}","received_events_url":"https://api.github.com/users/korre/received_events","type":"User","site_admin":false},"created_at":"2017-10-12T07:35:08Z","updated_at":"2017-10-12T07:35:08Z","author_association":"NONE","body":"Oh. I wasn't aware of the awesome feature of sharing crashes in fabric so here it is:\r\n\r\nhttp://crashes.to/s/3a95860716f\r\n"}}
{"actor":{"display_login":"korre"}}