ref #9114 adapt some classes with URI to wrapper in taxeditor (cont.)
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / UriWithLabelElement.java
index 53f9cf5fd868a6e21f9a56c8b6991e3122c9e9f3..215afd19e37ff4bb52a2a928d39d6f18bd405c09 100644 (file)
@@ -111,7 +111,7 @@ public class UriWithLabelElement extends AbstractUriWithExceptionLabelElement<UR
                     uriText = uriText.replace(url.getQuery(), UrlUtf8Coder.encode(url.getQuery()));
                 }
                 url = new URL(uriText);
-                return url.toURI();
+                return URI.fromUrl(url);
             }
         }
         return null;