owenb 2003/10/01 08:18:14
Modified: java/src/org/apache/wsif/wsdl Tag:
WSIF_2_0-uses-wsdl4j-1_4-patches
WSIFWSDLLocatorImpl.java
Log:
Fix problem with nested imports. Patch submitted by David Seager
Revision Changes Path
No revision
No revision
1.19.2.1 +3 -2 ws-wsif/java/src/org/apache/wsif/wsdl/WSIFWSDLLocatorImpl.java
Index: WSIFWSDLLocatorImpl.java
===================================================================
RCS file: /home/cvs/ws-wsif/java/src/org/apache/wsif/wsdl/WSIFWSDLLocatorImpl.java,v
retrieving revision 1.19
retrieving revision 1.19.2.1
diff -u -r1.19 -r1.19.2.1
--- WSIFWSDLLocatorImpl.java 17 Apr 2003 14:21:16 -0000 1.19
+++ WSIFWSDLLocatorImpl.java 1 Oct 2003 15:18:14 -0000 1.19.2.1
@@ -259,8 +259,9 @@
// necessary to avoid a NullPointerException in WSDLReaderImpl
importBase = "unknownImportURI";
}
- }
- importBase = (url == null) ? relativeLocation : url.toString();
+ } else {
+ importBase = (url == null) ? relativeLocation : url.toString();
+ }
} catch (Exception e) {
Trc.exception(e);
// If we have not tried using a non-ClassLoader route, try it now