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.. ;-)