diff --git a/org.eclipse.tm4e.registry/src/main/java/org/eclipse/tm4e/registry/TMResource.java b/org.eclipse.tm4e.registry/src/main/java/org/eclipse/tm4e/registry/TMResource.java index cba28c02c..4d5105296 100644 --- a/org.eclipse.tm4e.registry/src/main/java/org/eclipse/tm4e/registry/TMResource.java +++ b/org.eclipse.tm4e.registry/src/main/java/org/eclipse/tm4e/registry/TMResource.java @@ -76,14 +76,9 @@ public String getPluginId() { @Nullable @Override public InputStream getInputStream() throws IOException { - if (Strings.isNullOrEmpty(path)) { - return null; - } - if (!Strings.isNullOrEmpty(path)) { - final URL url = new URL(PLATFORM_PLUGIN + pluginId + "/" + path); - return url.openStream(); - } - return new FileInputStream(new File(path)); + return pluginId != null ? + new URL(PLATFORM_PLUGIN + pluginId + "/" + path).openStream() : // + new FileInputStream(new File(path)); } @Nullable