tools/java/src/stx/libjava/tools/environment/Resolver.java
branchdevelopment
changeset 2733 3d97124aebf5
parent 2729 ac412f6ea6d4
child 2786 241e36a125a9
--- a/tools/java/src/stx/libjava/tools/environment/Resolver.java	Sun Sep 15 02:16:13 2013 +0100
+++ b/tools/java/src/stx/libjava/tools/environment/Resolver.java	Mon Sep 16 01:04:57 2013 +0100
@@ -40,8 +40,10 @@
     }
     
     protected void completeTypeBindings2(CompilationUnitDeclaration cud) {
-        for (int i = 0; i < cud.types.length; i++) {
-            this.completeTypeBindings2(cud.types[i]);
+        if (cud.types != null) {
+            for (int i = 0; i < cud.types.length; i++) {
+                this.completeTypeBindings2(cud.types[i]);
+            }
         }
     }