]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2317: crash when issuing warning for invalid property value
authorVincent Hennebert <vhennebert@apache.org>
Thu, 21 Nov 2013 14:50:24 +0000 (14:50 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 21 Nov 2013 14:50:24 +0000 (14:50 +0000)
Patch by Seifeddine Dridi

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1544199 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FObj.java

index 0d1a2a84befc7dd94d235cbc7a0f4ce409e193f8..8532b27da32b41be019f1e46f4871780f01376e8 100644 (file)
@@ -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;
             }
         }