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