Bug 19134

Summary: NullPointerException at hdf.extractor.Utils.convertBytesToShort
Product: POI Reporter: JMB <jeroen>
Component: HDFAssignee: POI Developers List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Word doc for testing nullpointer exception poi/hfd

Description JMB 2003-04-18 00:34:54 UTC
Hi,
Sometimes convertBytesToShort is called with a null-array it seems.

Sample code:
WordDocument wd = new WordDocument("d:/testme2.doc");
StringWriter sw = new StringWriter();
wd.writeAllText(sw);	
System.out.println(sw.toString());


Checking for a null-array and then returning a 0 seems to help.
I'll try to attach the document.


Regards,
Jeroen
Comment 1 JMB 2003-04-18 00:38:59 UTC
Created attachment 5885 [details]
Word doc for testing nullpointer exception poi/hfd
Comment 2 Andy Oliver 2003-07-24 16:17:23 UTC
Move to HWPF