{"action":"opened","issue":{"url":"https://api.github.com/repos/oakesville/mythling/issues/68","labels_url":"https://api.github.com/repos/oakesville/mythling/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/oakesville/mythling/issues/68/comments","events_url":"https://api.github.com/repos/oakesville/mythling/issues/68/events","html_url":"https://github.com/oakesville/mythling/issues/68","id":130028265,"number":68,"title":"Null mediaList Can Result in Crash on Resume","user":{"login":"oakesville","id":5359962,"avatar_url":"https://avatars.githubusercontent.com/u/5359962?v=3","gravatar_id":"","url":"https://api.github.com/users/oakesville","html_url":"https://github.com/oakesville","followers_url":"https://api.github.com/users/oakesville/followers","following_url":"https://api.github.com/users/oakesville/following{/other_user}","gists_url":"https://api.github.com/users/oakesville/gists{/gist_id}","starred_url":"https://api.github.com/users/oakesville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oakesville/subscriptions","organizations_url":"https://api.github.com/users/oakesville/orgs","repos_url":"https://api.github.com/users/oakesville/repos","events_url":"https://api.github.com/users/oakesville/events{/privacy}","received_events_url":"https://api.github.com/users/oakesville/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oakesville/mythling/labels/priority:high","name":"priority:high","color":"eb6420"},{"url":"https://api.github.com/repos/oakesville/mythling/labels/type:bug","name":"type:bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/oakesville/mythling/milestones/1","html_url":"https://github.com/oakesville/mythling/milestones/R2.1","labels_url":"https://api.github.com/repos/oakesville/mythling/milestones/1/labels","id":697985,"number":1,"title":"R2.1","description":"","creator":{"login":"oakesville","id":5359962,"avatar_url":"https://avatars.githubusercontent.com/u/5359962?v=3","gravatar_id":"","url":"https://api.github.com/users/oakesville","html_url":"https://github.com/oakesville","followers_url":"https://api.github.com/users/oakesville/followers","following_url":"https://api.github.com/users/oakesville/following{/other_user}","gists_url":"https://api.github.com/users/oakesville/gists{/gist_id}","starred_url":"https://api.github.com/users/oakesville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oakesville/subscriptions","organizations_url":"https://api.github.com/users/oakesville/orgs","repos_url":"https://api.github.com/users/oakesville/repos","events_url":"https://api.github.com/users/oakesville/events{/privacy}","received_events_url":"https://api.github.com/users/oakesville/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":3,"state":"open","created_at":"2014-06-22T18:41:38Z","updated_at":"2016-01-30T19:45:54Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-01-30T19:45:54Z","updated_at":"2016-01-30T19:45:54Z","closed_at":null,"body":"A stack trace like below is occasionally reported.  User messages indicate this crash happens on resume.  Currently avoided by creating an empty mediaList, but this may be a worse experience than allowing the app to crash.\r\n\r\njava.lang.RuntimeException: Unable to resume activity {com.oakesville.mythling/com.oakesville.mythling.MediaListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.oakesville.mythling.media.MediaList.getListables(java.lang.String)' on a null object reference\r\n\tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986)\r\n\tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)\r\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)\r\n\tat android.app.ActivityThread.access$800(ActivityThread.java:151)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:135)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5254)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.oakesville.mythling.media.MediaList.getListables(java.lang.String)' on a null object reference\r\n\tat com.oakesville.mythling.MediaActivity.getListables(MediaActivity.java:131)\r\n\tat com.oakesville.mythling.ItemDetailFragment.onResume(ItemDetailFragment.java:124)\r\n\tat android.app.Fragment.performResume(Fragment.java:2096)\r\n\tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:928)\r\n\tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)\r\n\tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)\r\n\tat android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1879)\r\n\tat android.app.Activity.performResume(Activity.java:6086)\r\n\tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975)\r\n\t... 11 more"}}