Skip to content
Permalink
Browse files
FIx a possible NPE that is logged
  • Loading branch information
dkulp committed May 22, 2014
1 parent e761080 commit 59cf74748918d0ee07af2cd084cc3f4a68db03da
Showing 1 changed file with 3 additions and 0 deletions.
@@ -383,6 +383,9 @@ private int run(String[] args, final XJCErrorListener listener, final File file)
final CatalogResolver catResolver = new CatalogResolver(true) {
public InputSource resolveEntity(String publicId, String systemId) {
String resolved = getResolvedEntity(publicId, systemId);
if (resolved == null) {
return null;
}
URL url;
InputSource iSource = new InputSource(resolved);
iSource.setPublicId(publicId);

0 comments on commit 59cf747

Please sign in to comment.