You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/04/18 02:34:54 UTC
DO NOT REPLY [Bug 19134] New: -
NullPointerException at hdf.extractor.Utils.convertBytesToShort
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19134>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19134
NullPointerException at hdf.extractor.Utils.convertBytesToShort
Summary: NullPointerException at
hdf.extractor.Utils.convertBytesToShort
Product: POI
Version: unspecified
Platform: PC
OS/Version: Windows 9x
Status: NEW
Severity: Normal
Priority: Other
Component: HDF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: jeroen@nip.nl
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