{"action":"created","issue":{"url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/348","labels_url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/348/comments","events_url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/348/events","html_url":"https://github.com/Chicken-Bones/ForgeMultipart/issues/348","id":89761463,"number":348,"title":"NPE with Exception Message in MultipartCPH.handlePacket","user":{"login":"SquidDev","id":4346137,"avatar_url":"https://avatars.githubusercontent.com/u/4346137?v=3","gravatar_id":"","url":"https://api.github.com/users/SquidDev","html_url":"https://github.com/SquidDev","followers_url":"https://api.github.com/users/SquidDev/followers","following_url":"https://api.github.com/users/SquidDev/following{/other_user}","gists_url":"https://api.github.com/users/SquidDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SquidDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SquidDev/subscriptions","organizations_url":"https://api.github.com/users/SquidDev/orgs","repos_url":"https://api.github.com/users/SquidDev/repos","events_url":"https://api.github.com/users/SquidDev/events{/privacy}","received_events_url":"https://api.github.com/users/SquidDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-20T12:12:05Z","updated_at":"2015-06-20T13:00:58Z","closed_at":"2015-06-20T13:00:32Z","body":"Some exceptions (such as NPEs) do not contain an error message, and so [this statement](https://github.com/Chicken-Bones/ForgeMultipart/blob/master/src/codechicken/multipart/handler/packethandlers.scala#L48) (`case e:RuntimeException if e.getMessage.startsWith(\"DC: \")`) fails, making it harder to trace exceptions.\r\n\r\nA simple:\r\n```scala\r\ncase e:RuntimeException if e.getMessage != null && e.getMessage.startsWith(\"DC: \")\r\n```\r\nwould fix it."},"comment":{"url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/comments/113762099","html_url":"https://github.com/Chicken-Bones/ForgeMultipart/issues/348#issuecomment-113762099","issue_url":"https://api.github.com/repos/Chicken-Bones/ForgeMultipart/issues/348","id":113762099,"user":{"login":"SquidDev","id":4346137,"avatar_url":"https://avatars.githubusercontent.com/u/4346137?v=3","gravatar_id":"","url":"https://api.github.com/users/SquidDev","html_url":"https://github.com/SquidDev","followers_url":"https://api.github.com/users/SquidDev/followers","following_url":"https://api.github.com/users/SquidDev/following{/other_user}","gists_url":"https://api.github.com/users/SquidDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SquidDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SquidDev/subscriptions","organizations_url":"https://api.github.com/users/SquidDev/orgs","repos_url":"https://api.github.com/users/SquidDev/repos","events_url":"https://api.github.com/users/SquidDev/events{/privacy}","received_events_url":"https://api.github.com/users/SquidDev/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T13:00:58Z","updated_at":"2015-06-20T13:00:58Z","body":"Thanks!"}}