You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ow...@apache.org on 2002/09/09 11:54:41 UTC
cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apachesoap WSIFPort_ApacheSOAP.java
owenb 2002/09/09 02:54:41
Modified: java/src/org/apache/wsif/providers/soap/apachesoap
WSIFPort_ApacheSOAP.java
Log:
Fixed NullPointerException in prepareTypeMappings() if getSOAPMappingRegistry() is
invoked before the mappings have been initialized.
Revision Changes Path
1.16 +6 -0 xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apachesoap/WSIFPort_ApacheSOAP.java
Index: WSIFPort_ApacheSOAP.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apachesoap/WSIFPort_ApacheSOAP.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- WSIFPort_ApacheSOAP.java 27 Aug 2002 10:24:07 -0000 1.15
+++ WSIFPort_ApacheSOAP.java 9 Sep 2002 09:54:41 -0000 1.16
@@ -331,6 +331,12 @@
}
private void prepareTypeMappings() {
+ // If getSOAPMappingRegistry() as been called direcly then there
+ // is a possibility that the local type map has not yet been
+ // initialized so check now.
+ if (localTypeMap == null ) {
+ localTypeMap = new HashMap();
+ }
prepareTypeMappings(
getSOAPMappingRegistry(),
this.wsifTypeMap,