Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGéry Deloge2016-10-13 14:03:24 +0000
committerGerrit Code Review @ Eclipse.org2016-10-14 14:18:24 +0000
commit3278cc73a27b664bbd23fd4065521d8d6824e88b (patch)
treef8913b0af6f179c2959ed161e3e1645e8cf4233f /plugins/infra/properties
parentac8e39ea878007c21911283bc7509a8c2dc834b6 (diff)
downloadorg.eclipse.papyrus-3278cc73a27b664bbd23fd4065521d8d6824e88b.tar.gz
org.eclipse.papyrus-3278cc73a27b664bbd23fd4065521d8d6824e88b.tar.xz
org.eclipse.papyrus-3278cc73a27b664bbd23fd4065521d8d6824e88b.zip
Bug 505900: [BMM] invalid extension for org.eclipse.papyrus.infra.properties.contexts
Change-Id: I290072751830518a52b6c3e551fa4857efc8eb70 Signed-off-by: Géry Deloge <gery.deloge@cea.fr>
Diffstat (limited to 'plugins/infra/properties')
-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 505d4234b76..36574ba8b00 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
@@ -58,6 +58,9 @@ public class PropertiesURIHandler implements URIHandler {
@Override
public InputStream createInputStream(URI uri, Map<?, ?> options) throws IOException {
URI convertedURI = getConvertedURI(uri);
+ if(convertedURI == null){
+ throw new IOException(uri.toString() + " not found");
+ }
URIHandler handler = getDelegateHandler(convertedURI);
return handler.createInputStream(convertedURI, options);
}

Back to the top