When reading a WSDL document using a WSDLLocator to resolve imports an NPE occurs if the import cannot be found.
The WSDLLocator can return NULL from getImportInputSource, but the WSDLReaderImpl does not allow for this:
com/ibm/wsdl/xml/WSDLReaderImpl.java
373 inputSource = loc.getImportInputSource(contextURI, locationURI);
374
375 /*
376 We now have available the latest import URI. This might
377 differ from the locationURI so check the importedDefs for it
378 since it is this that we pass as the documentBaseURI later.
379 */
380 String liu = loc.getLatestImportURI();
381
382 importedDef = (Definition)importedDefs.get(liu);
383
384 inputSource.setSystemId(liu);
To reproduce read any WSDL document that contains an import with a custom WSDLLocator that always returns NULL.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
This is a 1 line fix, I can't believe there hasn't been any movement on this issue, did it slip thru the cracks?