X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FIR%2FSemanticChecker.java;h=af4aa96f735965afc163e8f8476aea5e86be3ff8;hp=108a88379b46e48f20e31bdcb3351b849073004a;hb=494b62b8ddfc3c3a7282aab4ad96d0e10fb1d1bc;hpb=38706bcbe3752535688ea2a5817e20c71315aa28 diff --git a/Repair/RepairCompiler/MCC/IR/SemanticChecker.java b/Repair/RepairCompiler/MCC/IR/SemanticChecker.java index 108a883..af4aa96 100755 --- a/Repair/RepairCompiler/MCC/IR/SemanticChecker.java +++ b/Repair/RepairCompiler/MCC/IR/SemanticChecker.java @@ -1099,7 +1099,7 @@ public class SemanticChecker { dCurrentType = type; // parse the labels and fields - if (!parse_labelsandfields(pn.getChild("lf"))) { + if (pn.getChild("lf")!=null && !parse_labelsandfields(pn.getChild("lf"))) { ok = false; }