Author: thomas.diesler(a)jboss.com
Date: 2008-05-22 12:04:44 -0400 (Thu, 22 May 2008)
New Revision: 7144
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
Log:
Prevent NPE
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2008-05-22
15:57:06 UTC (rev 7143)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2008-05-22
16:04:44 UTC (rev 7144)
@@ -251,7 +251,9 @@
finally
{
System.setProperty("java.class.path", javaClassPath);
- System.setProperty("javax.xml.stream.XMLInputFactory",
xmlInputFactory);
+
+ if (xmlInputFactory != null)
+ System.setProperty("javax.xml.stream.XMLInputFactory",
xmlInputFactory);
}
}
}
Show replies by date