https://bz.apache.org/bugzilla/show_bug.cgi?id=60484
Javen O'Neal <one...@apache.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEEDINFO |RESOLVED --- Comment #3 from Javen O'Neal <one...@apache.org> --- Thanks for attaching a problematic document. I was able to reproduce the NPE with your attachment by adding the doc file to test-data/document and using TestWordToConverterSuite.java. Since this is just an NPE and it looks like the submitted file may have some personal information in it, I don't think we need to include this file in our unit test corpus. > Testcase: testHtml[88: > /home/onealj/Downloads/poi/trunk/test-data/document/../document/60484.doc] > took 0.063 sec > Caused an ERROR > null > java.lang.NullPointerException > at org.apache.poi.hwpf.usermodel.Picture.getRawContent(Picture.java:424) > at org.apache.poi.hwpf.usermodel.Picture.fillImageContent(Picture.java:133) > at org.apache.poi.hwpf.usermodel.Picture.<init>(Picture.java:124) > at > org.apache.poi.hwpf.model.PicturesTable.extractPicture(PicturesTable.java:162) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processCharacters(AbstractWordConverter.java:489) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processField(AbstractWordConverter.java:906) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processCharacters(AbstractWordConverter.java:430) > at > org.apache.poi.hwpf.converter.WordToHtmlConverter.processParagraph(WordToHtmlConverter.java:576) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraphes(AbstractWordConverter.java:1113) > at > org.apache.poi.hwpf.converter.WordToHtmlConverter.processTable(WordToHtmlConverter.java:683) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraphes(AbstractWordConverter.java:1075) > at > org.apache.poi.hwpf.converter.WordToHtmlConverter.processSingleSection(WordToHtmlConverter.java:608) > at > org.apache.poi.hwpf.converter.AbstractWordConverter.processDocument(AbstractWordConverter.java:721) > at > org.apache.poi.hwpf.converter.TestWordToConverterSuite.testHtml(TestWordToConverterSuite.java:112) same error for testText and testFO. NPE caused by getBlipRecord returning null. [1] > ( (EscherBSERecord) escherRecord ).getBlipRecord().getPicturedata(); I changed this in r1777063 to return byte[0] if getBlipRecord() returns null. [1] https://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java?revision=1751007&view=markup#l402 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org