Repository: cxf-xjc-utils Updated Branches: refs/heads/master e76108057 -> 5ac1d7060
FIx a possible NPE that is logged Project: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/commit/59cf7474 Tree: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/tree/59cf7474 Diff: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/diff/59cf7474 Branch: refs/heads/master Commit: 59cf74748918d0ee07af2cd084cc3f4a68db03da Parents: e761080 Author: Daniel Kulp <[email protected]> Authored: Thu May 22 13:32:52 2014 -0400 Committer: Daniel Kulp <[email protected]> Committed: Thu May 22 13:32:52 2014 -0400 ---------------------------------------------------------------------- .../java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/blob/59cf7474/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java ---------------------------------------------------------------------- diff --git a/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java b/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java index 9538508..e1c331a 100644 --- a/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java +++ b/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java @@ -383,6 +383,9 @@ public abstract class AbstractXSDToJavaMojo extends AbstractMojo { 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);
