diff --git a/org.knime.knip.io/src/org/knime/knip/io/nodes/imgreader2/URLUtil.java b/org.knime.knip.io/src/org/knime/knip/io/nodes/imgreader2/URLUtil.java index 8d06e56c..d3e671ae 100644 --- a/org.knime.knip.io/src/org/knime/knip/io/nodes/imgreader2/URLUtil.java +++ b/org.knime.knip.io/src/org/knime/knip/io/nodes/imgreader2/URLUtil.java @@ -23,13 +23,13 @@ public static URI encode(String in) { } catch (MalformedURLException | URISyntaxException e1) { try { final URI fromString = URIUtil.fromString(in); + // no scheme specified, we assume 'file://' if (fromString.getScheme() == null) { final String fragment = fromString.getFragment(); if (fragment != null) { return new URI("file", fromString.getSchemeSpecificPart() + "#" + fragment, null); - } else { - return new URI("file", fromString.getSchemeSpecificPart(), fragment); } + return new URI("file", fromString.getSchemeSpecificPart(), fragment); } else if (isValidScheme(fromString.getScheme())) { return fromString; } else {