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 2016/07/03 12:15:39 UTC
[Bug 59786] NPE at HMEFContentsExtractor.java:78
https://bz.apache.org/bugzilla/show_bug.cgi?id=59786
--- Comment #1 from Sebb <se...@apache.org> ---
The following patch works for me (against the REL_3_15_BETA2 tag)
### Eclipse Workspace Patch 1.0
#P ApachePOI
Index:
src/scratchpad/src/org/apache/poi/hmef/extractor/HMEFContentsExtractor.java
===================================================================
--- src/scratchpad/src/org/apache/poi/hmef/extractor/HMEFContentsExtractor.java
(revision 1751146)
+++ src/scratchpad/src/org/apache/poi/hmef/extractor/HMEFContentsExtractor.java
(working copy)
@@ -75,7 +75,9 @@
try {
MAPIRtfAttribute body = (MAPIRtfAttribute)
message.getMessageMAPIAttribute(MAPIProperty.RTF_COMPRESSED);
- fout.write(body.getData());
+ if (body != null) {
+ fout.write(body.getData());
+ }
} finally {
fout.close();
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org