{"action":"created","issue":{"url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/12","repository_url":"https://api.github.com/repos/phonelab/cm-shamu.manifest","labels_url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/12/comments","events_url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/12/events","html_url":"https://github.com/phonelab/cm-shamu.manifest/issues/12","id":172357412,"number":12,"title":"Conductor NullPointerException in LogLastKmsg","user":{"login":"shaseley","id":2731352,"avatar_url":"https://avatars.githubusercontent.com/u/2731352?v=3","gravatar_id":"","url":"https://api.github.com/users/shaseley","html_url":"https://github.com/shaseley","followers_url":"https://api.github.com/users/shaseley/followers","following_url":"https://api.github.com/users/shaseley/following{/other_user}","gists_url":"https://api.github.com/users/shaseley/gists{/gist_id}","starred_url":"https://api.github.com/users/shaseley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaseley/subscriptions","organizations_url":"https://api.github.com/users/shaseley/orgs","repos_url":"https://api.github.com/users/shaseley/repos","events_url":"https://api.github.com/users/shaseley/events{/privacy}","received_events_url":"https://api.github.com/users/shaseley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-22T02:14:58Z","updated_at":"2016-08-22T16:42:18Z","closed_at":null,"body":"@gurupras: This happened after rebooting, and I encountered it twice in a row. Here's the stack trace:\r\n\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver edu.buffalo.cse.phonelab.conductor.receivers.StartReceiver: java.lang.NullPointerException: Attempt to get length of null array`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2766)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.app.ActivityThread.-wrap14(ActivityThread.java)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.os.Handler.dispatchMessage(Handler.java:102)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.os.Looper.loop(Looper.java:148)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.app.ActivityThread.main(ActivityThread.java:5461)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at java.lang.reflect.Method.invoke(Native Method)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to get length of null array`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at edu.buffalo.cse.phonelab.conductor.receivers.StartReceiver$LogLastKmsg.logPstoreFiles(StartReceiver.java:54)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at edu.buffalo.cse.phonelab.conductor.receivers.StartReceiver$LogLastKmsg.run(StartReceiver.java:45)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at edu.buffalo.cse.phonelab.conductor.receivers.StartReceiver.onReceive(StartReceiver.java:26)`\r\n`2016-08-21 22:04:42.073.73999995  3130  3130 E AndroidRuntime:  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2759)`"},"comment":{"url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/comments/241473613","html_url":"https://github.com/phonelab/cm-shamu.manifest/issues/12#issuecomment-241473613","issue_url":"https://api.github.com/repos/phonelab/cm-shamu.manifest/issues/12","id":241473613,"user":{"login":"shaseley","id":2731352,"avatar_url":"https://avatars.githubusercontent.com/u/2731352?v=3","gravatar_id":"","url":"https://api.github.com/users/shaseley","html_url":"https://github.com/shaseley","followers_url":"https://api.github.com/users/shaseley/followers","following_url":"https://api.github.com/users/shaseley/following{/other_user}","gists_url":"https://api.github.com/users/shaseley/gists{/gist_id}","starred_url":"https://api.github.com/users/shaseley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaseley/subscriptions","organizations_url":"https://api.github.com/users/shaseley/orgs","repos_url":"https://api.github.com/users/shaseley/repos","events_url":"https://api.github.com/users/shaseley/events{/privacy}","received_events_url":"https://api.github.com/users/shaseley/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T16:42:18Z","updated_at":"2016-08-22T16:42:18Z","body":"After talking to @gurupras, it looks like this was caused by a custom boot.img I was using that did not have the necessary SELinux changes that allows the Conductor to read the `pstore` files. The API does indicate that the listFiles() can return null, so we should add a null check anyways."}}
{"actor":{"display_login":"shaseley"}}