marcuslinke/TwelveMonkeys — pull request #1 by haraldk (2013-04-19 14:25:59+00:00)
Title: TMI-JPEG: More lenient segment parsing, now allows 0xFF padding between...

...segments + fixed an NPE in JPEGImageReader if the parsing fails.

I think this should fix your issue + address the real issue (IOException due to padding/bad parsing) behind the NPE.

(Sorry if messed up the pull request, I'm still a Git n00b.. ;-)