servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r415795 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java
Date Tue, 20 Jun 2006 20:44:36 GMT
Author: gnodet
Date: Tue Jun 20 13:44:35 2006
New Revision: 415795

URL: http://svn.apache.org/viewvc?rev=415795&view=rev
Log:
SM-461: Fix possible NPE in ExtendedXMLStreamReader

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java?rev=415795&r1=415794&r2=415795&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/ExtendedXMLStreamReader.java
Tue Jun 20 13:44:35 2006
@@ -101,7 +101,7 @@
 
 		public String getNamespaceURI(String prefix) {
 			String uri = (String) namespaces.get(prefix);
-			if (uri == null) {
+			if (uri == null && parent != null) {
 				uri = parent.getNamespaceURI(prefix);
 			}
 			return uri;



Mime
View raw message