From 3278cc73a27b664bbd23fd4065521d8d6824e88b Mon Sep 17 00:00:00 2001 From: Géry Deloge Date: Thu, 13 Oct 2016 16:03:24 +0200 Subject: Bug 505900: [BMM] invalid extension for org.eclipse.papyrus.infra.properties.contexts Change-Id: I290072751830518a52b6c3e551fa4857efc8eb70 Signed-off-by: Géry Deloge --- .../eclipse/papyrus/infra/properties/catalog/PropertiesURIHandler.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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); } -- cgit v1.2.3