commit | 9af70b2bcc5fe73ecd5177682370919869f1400f | [log] [tgz] |
---|---|---|
author | Victor Rubezhny <vrubezhny@redhat.com> | Wed Dec 21 01:18:39 2016 +0100 |
committer | Victor Rubezhny <vrubezhny@redhat.com> | Wed Dec 21 01:18:39 2016 +0100 |
tree | 7f0463c3df271721e6041b03bfe2aae7ed4b8be6 | |
parent | a51d2fd680e586ea2bf325327992aac499e65dfd [diff] |
Bug 509554 - NullPointerException in SchemaProcessorRegistryReader.getSchemaDocument Issue is fixed Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
diff --git a/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/schema/SchemaProcessorRegistryReader.java b/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/schema/SchemaProcessorRegistryReader.java index d249e29..c350eb1 100644 --- a/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/schema/SchemaProcessorRegistryReader.java +++ b/bundles/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/schema/SchemaProcessorRegistryReader.java
@@ -58,7 +58,8 @@ if (processor == null) { return null; } - String base = model.getResolver().getFileBaseLocation(); + String base = model == null || model.getResolver() == null ? + null : model.getResolver().getFileBaseLocation(); /** * We shouldn't assert a failure because the catalog does not require a * base location to operate and it will be called from non-file-based