From 92f259662c5ea7c767279cc1dd8b593696c68833 Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 8 Nov 2023 11:10:34 +0300 Subject: [PATCH] PDF/UA-2. Fix getroleMapToSameNamespaceTag to GFPDStructElem --- .../main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java index 203b23736..e45441138 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java @@ -202,7 +202,8 @@ public Boolean getcircularMappingExist() { @Override public String getroleMapToSameNamespaceTag() { - return ((org.verapdf.pd.structure.PDStructElem)simplePDObject).getRoleMapToSameNamespaceTag() + ":" + getstandardType(); + String namespace = ((org.verapdf.pd.structure.PDStructElem)simplePDObject).getRoleMapToSameNamespaceTag(); + return namespace != null ? namespace + ":" + getstandardType() : null; } @Override