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) {