commit | b8f45fb60ca4c9cdade35b1af4010149b63f1022 | [log] [tgz] |
---|---|---|
author | jsholl <jsholl> | Tue Nov 16 16:17:37 2010 +0000 |
committer | jsholl <jsholl> | Tue Nov 16 16:17:37 2010 +0000 |
tree | 83476554970a0fcd90bd206f1792e0b301bdd965 | |
parent | a5eb3e0658b1eaa5993b93e83d1e348840b26afa [diff] |
[300233] getProject() method in the EditModel should throw exception if project is null
diff --git a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModel.java b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModel.java index 80c98df..f83118f 100644 --- a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModel.java +++ b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModel.java
@@ -937,6 +937,8 @@ public IProject getProject() { + if(project == null) + throw new IllegalStateException("The value of the project attribute is null"); //$NON-NLS-1$ return project; }