Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-03-27 12:53:56 -0400
committerJuergen Haug2019-04-02 11:33:08 -0400
commit07bedae0385d5e2ec7bc474f585dd735ca38a71a (patch)
tree59d79cdec094ff8b9805336ccbe91fcb8b6c691a /plugins
parent8cfabe4a58f5fe3853e30f094a9346af6e10741f (diff)
downloadorg.eclipse.etrice-07bedae0385d5e2ec7bc474f585dd735ca38a71a.tar.gz
org.eclipse.etrice-07bedae0385d5e2ec7bc474f585dd735ca38a71a.tar.xz
org.eclipse.etrice-07bedae0385d5e2ec7bc474f585dd735ca38a71a.zip
fixed exception in StandardModelLocator
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/scoping/StandardModelLocator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/scoping/StandardModelLocator.java b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/scoping/StandardModelLocator.java
index 0f1c81acc..c53892695 100644
--- a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/scoping/StandardModelLocator.java
+++ b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/scoping/StandardModelLocator.java
@@ -54,7 +54,11 @@ public class StandardModelLocator implements IModelLocator {
public String resolve(String resolve, Resource resource) {
URI baseUri = resource==null? null : resource.getURI();
- resolve = resolve(resolve, baseUri, resource);
+ try {
+ resolve = resolve(resolve, baseUri, resource);
+ } catch(IllegalArgumentException e) {
+ return null;
+ }
if(resolve == null) {
return null;
}

Back to the top