This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 3513cb2ea9 Accept file paths passed as a plain string, toURL throws 
IAE.
     new bc08a4d8b8 Merge pull request #4560 from sdedic/lsp/filepath-uri
3513cb2ea9 is described below

commit 3513cb2ea9b5396f1ae84456e1207a15d020a932
Author: Svata Dedic <[email protected]>
AuthorDate: Mon Aug 29 12:34:50 2022 +0200

    Accept file paths passed as a plain string, toURL throws IAE.
---
 .../src/org/netbeans/modules/nbcode/integration/commands/Utils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/Utils.java
 
b/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/Utils.java
index b6d74b7740..9100a366e0 100644
--- 
a/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/Utils.java
+++ 
b/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/Utils.java
@@ -42,7 +42,7 @@ class Utils {
             try {
                 URI uri = new URI(s);
                 f = URLMapper.findFileObject(uri.toURL());
-            } catch (URISyntaxException | MalformedURLException ex) {
+            } catch (URISyntaxException | IllegalArgumentException | 
MalformedURLException ex) {
                 f = FileUtil.toFileObject(new File(s));
             }
         } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to