You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2018/09/28 07:48:29 UTC
svn commit: r1842218 -
/poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java
Author: fanningpj
Date: Fri Sep 28 07:48:29 2018
New Revision: 1842218
URL: http://svn.apache.org/viewvc?rev=1842218&view=rev
Log:
fix lgtm issues
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java?rev=1842218&r1=1842217&r2=1842218&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/ooxml/POIXMLProperties.java Fri Sep 28 07:48:29 2018
@@ -223,7 +223,7 @@ public class POIXMLProperties {
throw new POIXMLException(e);
}
}
- if(extPart != null){
+ if(extPart != null && ext != null && ext.props != null){
try (OutputStream out = extPart.getOutputStream()) {
if (extPart.getSize() > 0) {
extPart.clear();
@@ -231,7 +231,7 @@ public class POIXMLProperties {
ext.props.save(out, DEFAULT_XML_OPTIONS);
}
}
- if(custPart != null){
+ if(custPart != null && cust != null && cust.props != null){
try (OutputStream out = custPart.getOutputStream()) {
cust.props.save(out, DEFAULT_XML_OPTIONS);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org