You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2015/01/29 11:17:13 UTC
svn commit: r1655574 -
/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
Author: coheigea
Date: Thu Jan 29 10:17:13 2015
New Revision: 1655574
URL: http://svn.apache.org/r1655574
Log:
[SANTUARIO-412] - Fixing potential NPE
Modified:
santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java?rev=1655574&r1=1655573&r2=1655574&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java Thu Jan 29 10:17:13 2015
@@ -181,7 +181,7 @@ public abstract class Canonicalizer20010
int attrsLength = attrs.getLength();
for (int i = 0; i < attrsLength; i++) {
Attr attribute = (Attr) attrs.item(i);
- String NName = attribute.getLocalName();
+ String NName = attribute.getLocalName() == null ? "" : attribute.getLocalName();
String NNodeValue = attribute.getNodeValue();
if (!(XMLNS_URI.equals(attribute.getNamespaceURI())