summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2011-03-27 03:47:31 (EDT)
committer Karsten Thoms2011-03-27 03:47:31 (EDT)
commit401154532889e8e86daa87a2ee2cf5ca27ee44d1 (patch)
tree91fd18d0ba490bcb857330c241ebca45c710bb47
parentf2210f7a341eca3b56676658f3b825d5507abb6f (diff)
downloadorg.eclipse.mwe-401154532889e8e86daa87a2ee2cf5ca27ee44d1.zip
org.eclipse.mwe-401154532889e8e86daa87a2ee2cf5ca27ee44d1.tar.gz
org.eclipse.mwe-401154532889e8e86daa87a2ee2cf5ca27ee44d1.tar.bz2
fix for bug#341044: Throwing IllegalStateException in run() when the module cannot be found
-rw-r--r--plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java b/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java
index edc1625..68dfc1c 100644
--- a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java
+++ b/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java
@@ -75,6 +75,9 @@ public class Mwe2Runner {
public void run(String moduleName, Map<String, String> params, IWorkflowContext ctx) {
Module module = findModule(moduleName);
+ if (module == null) {
+ throw new IllegalStateException("Couldn't find module "+moduleName);
+ }
EcoreUtil.resolveAll(module);
if (!module.eResource().getErrors().isEmpty()) {
throw new IllegalStateException(module.eResource().getErrors().toString());