Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGéry Deloge2017-01-03 13:17:35 +0000
committerBenoit Maggi2017-01-04 12:35:07 +0000
commitddbecc33c1ae7ea58cdd51e3cf695cbffac5f540 (patch)
tree4365e20f0ebc061cb1ba25a65c462ea7ca8e5936
parenta07e201f87d3df167e15245973ba152dcc183ebd (diff)
downloadorg.eclipse.papyrus-ddbecc33c1ae7ea58cdd51e3cf695cbffac5f540.tar.gz
org.eclipse.papyrus-ddbecc33c1ae7ea58cdd51e3cf695cbffac5f540.tar.xz
org.eclipse.papyrus-ddbecc33c1ae7ea58cdd51e3cf695cbffac5f540.zip
Bug 509844: NullPointerException in PropertiesURIHandler.createInputStream
Change-Id: I12537358128ba6c238efb4b89b7ec47385e94293 Signed-off-by: Géry Deloge <gery.deloge@cea.fr>
-rw-r--r--plugins/infra/properties/org.eclipse.papyrus.infra.properties/src/org/eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src/org/eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src/org/eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java
index 36574ba8b00..5a724b8d9ce 100644
--- a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src/org/eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java
+++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src/org/eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java
@@ -62,6 +62,9 @@ public class PropertiesURIHandler implements URIHandler {
throw new IOException(uri.toString() + " not found");
}
URIHandler handler = getDelegateHandler(convertedURI);
+ if(handler == null){
+ throw new IOException(uri.toString() + " : no handler found");
+ }
return handler.createInputStream(convertedURI, options);
}

Back to the top