nooyoo11 / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
1 stars 0 forks source link

NullPointerException when using new EpubCheck(File, PrintWriter) #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PROBLEM:

NullPointerException when using "new EpubCheck(File, PrintWriter)":

WriterReportImpl.fixMessage() throws a NullPointerException here: 
http://code.google.com/p/epubcheck/source/browse/tags/3.0.1/src/main/java/com/ad
obe/epubcheck/util/WriterReportImpl.java#56

DefaultReportImpl.fixMessage() has a check for a null value, see: 
http://code.google.com/p/epubcheck/source/browse/tags/3.0.1/src/main/java/com/ad
obe/epubcheck/util/DefaultReportImpl.java#51

FIX:

I added the same check in DefaultReportImpl.fixMessage() to WriterReportImpl 
and it no longer threw the exception.

Original issue reported on code.google.com by william....@bl.uk on 7 Aug 2013 at 8:03

GoogleCodeExporter commented 9 years ago
This is using 3.0.1

Original comment by william....@bl.uk on 7 Aug 2013 at 8:05

GoogleCodeExporter commented 9 years ago
Thanks. I fixed this in r512

Original comment by tobias.c...@gmail.com on 8 Aug 2013 at 8:49