From: Vincent Hennebert Date: Thu, 21 Nov 2013 14:50:24 +0000 (+0000) Subject: FOP-2317: crash when issuing warning for invalid property value X-Git-Tag: fop-2_0~159 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8f6ee444c695c9310871dfcaf4bcc9c1aaf4cd7;p=xmlgraphics-fop.git FOP-2317: crash when issuing warning for invalid property value Patch by Seifeddine Dridi git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1544199 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java index 0d1a2a84b..8532b27da 100644 --- a/src/java/org/apache/fop/fo/FObj.java +++ b/src/java/org/apache/fop/fo/FObj.java @@ -149,7 +149,7 @@ public abstract class FObj extends FONode implements Constants { String attributeName = attList.getQName(i); String attributeValue = attList.getValue(i); Property prop = propertyList.getPropertyForAttribute(attList, attributeName, attributeValue); - if (prop.equals(value)) { + if (prop != null && prop.equals(value)) { return attributeName; } }