{"action":"created","issue":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/6115","repository_url":"https://api.github.com/repos/WhisperSystems/Signal-Android","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/6115/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/6115/comments","events_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/6115/events","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/6115","id":203805877,"number":6115,"title":"SMS with malformed headers crashes Signal on startup","user":{"login":"CaiusCosades","id":25378723,"avatar_url":"https://avatars.githubusercontent.com/u/25378723?v=3","gravatar_id":"","url":"https://api.github.com/users/CaiusCosades","html_url":"https://github.com/CaiusCosades","followers_url":"https://api.github.com/users/CaiusCosades/followers","following_url":"https://api.github.com/users/CaiusCosades/following{/other_user}","gists_url":"https://api.github.com/users/CaiusCosades/gists{/gist_id}","starred_url":"https://api.github.com/users/CaiusCosades/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaiusCosades/subscriptions","organizations_url":"https://api.github.com/users/CaiusCosades/orgs","repos_url":"https://api.github.com/users/CaiusCosades/repos","events_url":"https://api.github.com/users/CaiusCosades/events{/privacy}","received_events_url":"https://api.github.com/users/CaiusCosades/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-28T12:54:15Z","updated_at":"2017-01-28T13:20:26Z","closed_at":null,"body":"<!-- This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the developers to get all the necessary data to fix your issue.\r\nYou can also preview your report before submitting it. You may remove sections that aren't relevant to your particular case.\r\n\r\nBefore we begin, please note that this tracker is only for issues, not questions or comments.\r\n\r\nIf you are looking for support, please see our support center instead:\r\nhttps://support.whispersystems.org/\r\nor email support@whispersystems.org\r\n\r\nLet's begin with a checklist: replace the empty checkboxes [ ] below with checked ones [x] accordingly -->\r\n\r\nI have:\r\n- [x] searched open and closed issues for duplicates\r\n- [x] read https://github.com/WhisperSystems/Signal-Android/wiki/Submitting-useful-bug-reports\r\n\r\n----------------------------------------\r\n\r\n### Bug description\r\nMy Signal began to crash on startup without a reason! I read the support page and airplane mode did not help. Sent another SMS to my phone for the notification - it showed that I received several anonymous multimedia messages. Pressed \"Mark all as read\" - that didn't help. \r\nNow I have to use WhatsApp and default SMS client. Am I going to lose all my messages now? Please fix ASAP.\r\n\r\n### Steps to reproduce\r\n- receive an anonymous multimedia message\r\n\r\n**Actual result:** Signal starts to crash on startup\r\n**Expected result:** Signal should not crash on startup\r\n\r\n### Screenshots\r\n![tmp_20464-screenshot_2017-01-27-10-31-212056042925](https://cloud.githubusercontent.com/assets/25378723/22358098/e83cdd1a-e47f-11e6-991a-e5eb53f01d80.png)\r\n[VIDEO - crash on startup](https://fat.gfycat.com/AmazingMeagerAssassinbug.webm)\r\n\r\n### Device info\r\n**Device:** Xperia Z1 Compact\r\n**Android version:** 5.1.1 (CyanogenMod 12.1)\r\n**Signal version:** 3.27.1\r\n\r\n### Link to debug log\r\n[logreport.txt](https://github.com/WhisperSystems/Signal-Android/files/736850/logreport.txt)\r\n[logreport_airplane.txt](https://github.com/WhisperSystems/Signal-Android/files/736857/logreport_airplane.txt) - this is with aeroplane mode on\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/comments/275847798","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/6115#issuecomment-275847798","issue_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/6115","id":275847798,"user":{"login":"Trolldemorted","id":10261186,"avatar_url":"https://avatars.githubusercontent.com/u/10261186?v=3","gravatar_id":"","url":"https://api.github.com/users/Trolldemorted","html_url":"https://github.com/Trolldemorted","followers_url":"https://api.github.com/users/Trolldemorted/followers","following_url":"https://api.github.com/users/Trolldemorted/following{/other_user}","gists_url":"https://api.github.com/users/Trolldemorted/gists{/gist_id}","starred_url":"https://api.github.com/users/Trolldemorted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trolldemorted/subscriptions","organizations_url":"https://api.github.com/users/Trolldemorted/orgs","repos_url":"https://api.github.com/users/Trolldemorted/repos","events_url":"https://api.github.com/users/Trolldemorted/events{/privacy}","received_events_url":"https://api.github.com/users/Trolldemorted/received_events","type":"User","site_admin":false},"created_at":"2017-01-28T13:20:26Z","updated_at":"2017-01-28T13:20:26Z","body":"@moxie0, can we just wrap the usage of the [headers](https://github.com/WhisperSystems/Signal-Android/blob/master/src/org/thoughtcrime/securesms/database/MmsDatabase.java#L804) with `if != null`, or does signal rely on the missing fields being filled in the db?"}}
{"actor":{"display_login":"Trolldemorted"}}