Generalize definition of SumExpr a little...Lets sum all elements of
[repair.git] / Repair / RepairCompiler / MCC / IR / DotExpr.java
index 4f550a4cce8231f1c18b72f3229785be1f6ed6f9..be8d32489fbae24cd327c32c5192b6f99005c2fa 100755 (executable)
@@ -380,6 +380,9 @@ public class DotExpr extends Expr {
                assert intindex == null;
                intindex = ld.getIndex();
            } else {
+                if (fd==null) {
+                    throw new Error("Null fd for: "+field);
+                }
                fieldtype = fd.getType();
                intindex=index;
            }