diff --git a/validation-model/src/main/java/org/verapdf/gf/model/factory/operators/OperatorParser.java b/validation-model/src/main/java/org/verapdf/gf/model/factory/operators/OperatorParser.java index b3a80431c..b9c16f032 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/factory/operators/OperatorParser.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/factory/operators/OperatorParser.java @@ -527,10 +527,12 @@ void parseOperator(List processedOperators, // XOBJECT case Operators.DO: Long mcid = null; - List parentsTags = new LinkedList<>(); + List parentsTags; if (!markedContentStack.empty()) { mcid = markedContentStack.peek().getInheritedMCID(); parentsTags = markedContentStack.peek().getParentsTags(); + } else { + parentsTags = new LinkedList<>(this.parentsTags); } COSObject parentStructElem = getParentStructElem(structureElementAccessObject, mcid); if (parentStructElem == null) {