You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2006/06/02 09:34:26 UTC
svn commit: r411080 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
Author: jeremias
Date: Fri Jun 2 00:34:25 2006
New Revision: 411080
URL: http://svn.apache.org/viewvc?rev=411080&view=rev
Log:
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>
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java?rev=411080&r1=411079&r2=411080&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java Fri Jun 2 00:34:25 2006
@@ -301,7 +301,7 @@
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)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org