You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ma...@apache.org on 2026/06/25 18:38:37 UTC
(grails-core) branch remove-depr-warnings updated: fix: handle IllegalArgumentException in URL creation
This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch remove-depr-warnings
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/remove-depr-warnings by this push:
new 4fbd8434e7 fix: handle IllegalArgumentException in URL creation
4fbd8434e7 is described below
commit 4fbd8434e74cfc80f36d4ef282bb7408c73e2c76
Author: Mattias Reichel <ma...@gmail.com>
AuthorDate: Thu Jun 25 20:37:06 2026 +0200
fix: handle IllegalArgumentException in URL creation
---
grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java b/grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java
index fb20df78f3..303d1af518 100644
--- a/grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java
+++ b/grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java
@@ -163,7 +163,7 @@ public abstract class ResourceUtils {
URL url = URI.create(location).toURL();
return new UrlResource(url);
}
- catch (MalformedURLException ex) {
+ catch (MalformedURLException | IllegalArgumentException ex) {
// No URL -> resolve as resource path.
return getResourceByPath(location);
}