summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsefftinge2009-02-11 04:43:31 (EST)
committersefftinge2009-02-11 04:43:31 (EST)
commite2c2f1def32979a08f17c8c2a1c07840667c9634 (patch)
tree4f2996a3ede73774750873ea420c180954651e22
parenta5ade7f416671371e27b1fe114ca30c574d99c00 (diff)
downloadorg.eclipse.xpand-e2c2f1def32979a08f17c8c2a1c07840667c9634.zip
org.eclipse.xpand-e2c2f1def32979a08f17c8c2a1c07840667c9634.tar.gz
org.eclipse.xpand-e2c2f1def32979a08f17c8c2a1c07840667c9634.tar.bz2
patch applied (https://bugs.eclipse.org/bugs/show_bug.cgi?id=264363)
-rw-r--r--plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/ast/ExtensionFile.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/ast/ExtensionFile.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/ast/ExtensionFile.java
index 1ab696c..cfdd78d 100644
--- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/ast/ExtensionFile.java
+++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/ast/ExtensionFile.java
@@ -176,6 +176,9 @@ public class ExtensionFile extends SyntaxElement implements XtendFile {
if (imp.isExported()) {
final XtendFile xf = (XtendFile) rm.loadResource(imp.getImportedId().getValue(),
XtendFile.FILE_EXTENSION);
+ if (xf == null)
+ throw new RuntimeException("Unable rexport extension file " + imp.getImportedId().getValue() + " from " + this.getFullyQualifiedName());
+
ExecutionContext context = ctx.cloneWithResource(xf);
List<Extension> publicExtensions = xf.getPublicExtensions(rm, context, flowoverCache);
for (Extension extension : publicExtensions) {