From 18becb4ea91297bbc88271d770ce1d34921f6b5f Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 20 Oct 2023 17:08:13 +0300 Subject: [PATCH] Fix getChildren in GFPDStructTreeNode --- .../java/org/verapdf/gf/model/impl/pd/GFPDStructTreeNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructTreeNode.java b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructTreeNode.java index 43b88edea..3033aa2f7 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructTreeNode.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructTreeNode.java @@ -113,7 +113,7 @@ private static List getChildrenStandardTypes(GFPDStructTreeNode element) public List getChildren() { if (children == null) { - List elements = ((org.verapdf.pd.structure.PDStructElem) simplePDObject).getStructChildren(); + List elements = ((org.verapdf.pd.structure.PDStructTreeNode) simplePDObject).getStructChildren(); if (!elements.isEmpty()) { List res = new ArrayList<>(elements.size()); for (org.verapdf.pd.structure.PDStructElem element : elements) {