{"action":"closed","issue":{"url":"https://api.github.com/repos/k9mail/k-9/issues/1201","repository_url":"https://api.github.com/repos/k9mail/k-9","labels_url":"https://api.github.com/repos/k9mail/k-9/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/k9mail/k-9/issues/1201/comments","events_url":"https://api.github.com/repos/k9mail/k-9/issues/1201/events","html_url":"https://github.com/k9mail/k-9/issues/1201","id":142687402,"number":1201,"title":"NPE/Null object reference crash when attempting to decode certain messages","user":{"login":"vt0r","id":2738646,"avatar_url":"https://avatars.githubusercontent.com/u/2738646?v=3","gravatar_id":"","url":"https://api.github.com/users/vt0r","html_url":"https://github.com/vt0r","followers_url":"https://api.github.com/users/vt0r/followers","following_url":"https://api.github.com/users/vt0r/following{/other_user}","gists_url":"https://api.github.com/users/vt0r/gists{/gist_id}","starred_url":"https://api.github.com/users/vt0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vt0r/subscriptions","organizations_url":"https://api.github.com/users/vt0r/orgs","repos_url":"https://api.github.com/users/vt0r/repos","events_url":"https://api.github.com/users/vt0r/events{/privacy}","received_events_url":"https://api.github.com/users/vt0r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/k9mail/k-9/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"Valodim","id":27813,"avatar_url":"https://avatars.githubusercontent.com/u/27813?v=3","gravatar_id":"","url":"https://api.github.com/users/Valodim","html_url":"https://github.com/Valodim","followers_url":"https://api.github.com/users/Valodim/followers","following_url":"https://api.github.com/users/Valodim/following{/other_user}","gists_url":"https://api.github.com/users/Valodim/gists{/gist_id}","starred_url":"https://api.github.com/users/Valodim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valodim/subscriptions","organizations_url":"https://api.github.com/users/Valodim/orgs","repos_url":"https://api.github.com/users/Valodim/repos","events_url":"https://api.github.com/users/Valodim/events{/privacy}","received_events_url":"https://api.github.com/users/Valodim/received_events","type":"User","site_admin":false},"assignees":[{"login":"Valodim","id":27813,"avatar_url":"https://avatars.githubusercontent.com/u/27813?v=3","gravatar_id":"","url":"https://api.github.com/users/Valodim","html_url":"https://github.com/Valodim","followers_url":"https://api.github.com/users/Valodim/followers","following_url":"https://api.github.com/users/Valodim/following{/other_user}","gists_url":"https://api.github.com/users/Valodim/gists{/gist_id}","starred_url":"https://api.github.com/users/Valodim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valodim/subscriptions","organizations_url":"https://api.github.com/users/Valodim/orgs","repos_url":"https://api.github.com/users/Valodim/repos","events_url":"https://api.github.com/users/Valodim/events{/privacy}","received_events_url":"https://api.github.com/users/Valodim/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/k9mail/k-9/milestones/12","html_url":"https://github.com/k9mail/k-9/milestones/v5.111","labels_url":"https://api.github.com/repos/k9mail/k-9/milestones/12/labels","id":1888321,"number":12,"title":"v5.111","description":"","creator":{"login":"cketti","id":218061,"avatar_url":"https://avatars.githubusercontent.com/u/218061?v=3","gravatar_id":"","url":"https://api.github.com/users/cketti","html_url":"https://github.com/cketti","followers_url":"https://api.github.com/users/cketti/followers","following_url":"https://api.github.com/users/cketti/following{/other_user}","gists_url":"https://api.github.com/users/cketti/gists{/gist_id}","starred_url":"https://api.github.com/users/cketti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cketti/subscriptions","organizations_url":"https://api.github.com/users/cketti/orgs","repos_url":"https://api.github.com/users/cketti/repos","events_url":"https://api.github.com/users/cketti/events{/privacy}","received_events_url":"https://api.github.com/users/cketti/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2016-07-17T20:36:24Z","updated_at":"2016-08-30T02:26:24Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-03-22T15:33:57Z","updated_at":"2016-08-30T02:26:24Z","closed_at":"2016-08-30T02:26:24Z","body":"### Expected behaviour\r\nEmail should be decoded and displayed properly\r\n\r\n### Actual behaviour\r\nK-9 mail crashes, due to an NPE\r\n\r\n### Steps to reproduce\r\n1. (Attached email in .eml format) Download attached message to K-9 mail\r\n2. Attempt to view the message\r\n\r\n### Environment\r\nK-9 Mail version: 5.108 (build from current master as of 2016-03-22)\r\n\r\nAndroid version: 6.0.1\r\n\r\nDevice: Nexus 6P\r\n\r\nAccount type (IMAP, POP3, WebDAV/Exchange): IMAP\r\n\r\n### Crash logs\r\n```\r\n03-22 11:02:07.340 E/k9      (20726): Error while decoding message\r\n03-22 11:02:07.340 E/k9      (20726): java.lang.RuntimeException: Not supported\r\n03-22 11:02:07.340 E/k9      (20726): \tat com.fsck.k9.mailstore.LocalMessageExtractor.extractAttachmentInfo(LocalMessageExtractor.java:529)\r\n03-22 11:02:07.340 E/k9      (20726): \tat com.fsck.k9.mailstore.LocalMessageExtractor.extractAttachmentInfos(LocalMessageExtractor.java:502)\r\n03-22 11:02:07.340 E/k9      (20726): \tat com.fsck.k9.mailstore.LocalMessageExtractor.decodeMessageForView(LocalMessageExtractor.java:444)\r\n03-22 11:02:07.340 E/k9      (20726): \tat com.fsck.k9.ui.message.DecodeMessageLoader.loadInBackground(DecodeMessageLoader.java:46)\r\n03-22 11:02:07.340 E/k9      (20726): \tat com.fsck.k9.ui.message.DecodeMessageLoader.loadInBackground(DecodeMessageLoader.java:15)\r\n03-22 11:02:07.340 E/k9      (20726): \tat android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)\r\n03-22 11:02:07.340 E/k9      (20726): \tat android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)\r\n03-22 11:02:07.340 E/k9      (20726): \tat android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)\r\n03-22 11:02:07.340 E/k9      (20726): \tat android.os.AsyncTask$2.call(AsyncTask.java:295)\r\n03-22 11:02:07.340 E/k9      (20726): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n03-22 11:02:07.340 E/k9      (20726): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n03-22 11:02:07.340 E/k9      (20726): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n03-22 11:02:07.340 E/k9      (20726): \tat java.lang.Thread.run(Thread.java:818)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): FATAL EXCEPTION: main\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): Process: com.fsck.k9, PID: 20726\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): java.lang.NullPointerException: Attempt to read from field 'com.fsck.k9.mail.Message com.fsck.k9.mailstore.MessageViewInfo.message' on a null object reference\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageTopView.setMessage(MessageTopView.java:90)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageViewFragment.showMessage(MessageViewFragment.java:281)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageViewFragment.onDecodeMessageFinished(MessageViewFragment.java:276)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageViewFragment.access$1200(MessageViewFragment.java:57)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageViewFragment$DecodeMessageLoaderCallback.onLoadFinished(MessageViewFragment.java:755)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.messageview.MessageViewFragment$DecodeMessageLoaderCallback.onLoadFinished(MessageViewFragment.java:745)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:483)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:451)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.content.Loader.deliverResult(Loader.java:144)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.message.DecodeMessageLoader.deliverResult(DecodeMessageLoader.java:40)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.fsck.k9.ui.message.DecodeMessageLoader.deliverResult(DecodeMessageLoader.java:15)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.os.AsyncTask.finish(AsyncTask.java:651)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.os.AsyncTask.-wrap1(AsyncTask.java)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.os.Looper.loop(Looper.java:148)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat android.app.ActivityThread.main(ActivityThread.java:5422)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat java.lang.reflect.Method.invoke(Native Method)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n03-22 11:02:07.357 E/AndroidRuntime(20726): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```\r\n[Your PVWC eBill is Ready - Anonymized.eml.txt](https://github.com/k9mail/k-9/files/184412/Your.PVWC.eBill.is.Ready.-.Anonymized.eml.txt)\r\n\r\n"}}
{"actor":{"display_login":"cketti"}}