Author: thomas.diesler(a)jboss.com
Date: 2006-12-23 16:18:02 -0500 (Sat, 23 Dec 2006)
New Revision: 1763
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
Log:
prevent NPE when faultBean is not defined
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
===================================================================
---
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2006-12-23
19:20:31 UTC (rev 1762)
+++
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2006-12-23
21:18:02 UTC (rev 1763)
@@ -190,7 +190,12 @@
throw new WSException("Cannot load java type: " + javaTypeName);
faultBean = getFaultBean();
+ if (faultBean != null)
+ initializeFaultBean();
+ }
+ private void initializeFaultBean()
+ {
/* JAX-WS 3.7: For exceptions that match the pattern described in section
* 2.5 (i.e. exceptions that have a getFaultInfo method), the FaultBean
* is used as input to JAXB */