diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-06-02 07:34:25 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-06-02 07:34:25 +0000 |
commit | e8e65a64f03dfe05ad245eb6a89184714c4d1286 (patch) | |
tree | 3bfbf1934679c7ec5040e14d801daf428a827aad /src/java/org/apache/fop | |
parent | 82513858478313c94072cf86763de4b6f0a23e52 (diff) | |
download | xmlgraphics-fop-e8e65a64f03dfe05ad245eb6a89184714c4d1286.tar.gz xmlgraphics-fop-e8e65a64f03dfe05ad245eb6a89184714c4d1286.zip |
Bugzilla #39701:
Fix potential NullPointerException when buggy JAXP implementations return null instead of an empty String as namespace URI.
Submitted by: Stefan Ziel <stefan.ziel.at.claninfo.ch>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411080 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/fo/PropertyList.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java index 5bf00346a..1f148d5fc 100644 --- a/src/java/org/apache/fop/fo/PropertyList.java +++ b/src/java/org/apache/fop/fo/PropertyList.java @@ -301,7 +301,7 @@ public abstract class PropertyList { attributeNS = attributes.getURI(i); attributeName = attributes.getQName(i); attributeValue = attributes.getValue(i); - if (attributeNS.length() == 0) { + if (attributeNS == null || attributeNS.length() == 0) { convertAttributeToProperty(attributes, attributeName, attributeValue); } else if (!factory.isNamespaceIgnored(attributeNS)) { if (factory.getElementMappingRegistry().isKnownNamespace(attributeNS)) { |