summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhubner2008-11-04 05:59:47 (EST)
committer dhubner2008-11-04 05:59:47 (EST)
commitce0e47d4351e57fe1583567ead0a63295c7a9543 (patch)
treee46ef187a90ea98906fbcf5e89973b8d64ac7776
parent6b17d78cf444e11b74747c4199650efc08b1752c (diff)
downloadorg.eclipse.xpand-ce0e47d4351e57fe1583567ead0a63295c7a9543.zip
org.eclipse.xpand-ce0e47d4351e57fe1583567ead0a63295c7a9543.tar.gz
org.eclipse.xpand-ce0e47d4351e57fe1583567ead0a63295c7a9543.tar.bz2
Check Registry wrong error message
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
index 9e0201b..7433437 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
+++ b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
@@ -103,6 +103,9 @@ public class CheckRegistry {
private EPackage findEPackage(String nsURI) {
Object registeredEPackageDescriptor = EPackage.Registry.INSTANCE.get(nsURI);
+ if (registeredEPackageDescriptor == null)
+ throw new IllegalArgumentException("EPackage with URI " + nsURI
+ + " not found in EPackage.Registry.INSTANCE");
if (registeredEPackageDescriptor instanceof EPackage) {
return (EPackage) registeredEPackageDescriptor;
}