From 1276774d03966a5c555e15a9df87e290d057182d Mon Sep 17 00:00:00 2001 From: rensink Date: Mon, 14 Oct 2024 15:04:28 +0200 Subject: [PATCH] Resolved year-old but never detected issue in erroneous assertion regarding inappropriate node aspects --- .../java/nl/utwente/groove/grammar/aspect/AspectNode.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/nl/utwente/groove/grammar/aspect/AspectNode.java b/src/main/java/nl/utwente/groove/grammar/aspect/AspectNode.java index df11136a7..ee0506ade 100644 --- a/src/main/java/nl/utwente/groove/grammar/aspect/AspectNode.java +++ b/src/main/java/nl/utwente/groove/grammar/aspect/AspectNode.java @@ -140,7 +140,9 @@ public void addLabel(AspectLabel label) { assert !isParsed(); getNodeLabels().add(label); addErrors(label.getErrors()); - label.getAspects().forEach(this::set); + if (!label.hasErrors()) { + label.getAspects().forEach(this::set); + } } /**