Small changes to allow:
[repair.git] / Repair / RepairCompiler / MCC / IR / SemanticChecker.java
index 108a88379b46e48f20e31bdcb3351b849073004a..af4aa96f735965afc163e8f8476aea5e86be3ff8 100755 (executable)
@@ -1099,7 +1099,7 @@ public class SemanticChecker {
         dCurrentType = type;
 
         // parse the labels and fields
         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;
         }
 
             ok = false;
         }