Skip to content

Commit

Permalink
Fix getremappedStandardType method
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Aug 6, 2024
1 parent 332435d commit f263d2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ public String getremappedStandardType() {
if (type == null) {
return null;
}
if (!Objects.equals(type.getType(), standardStructureType.getType()) ||
if (standardStructureType == null || !Objects.equals(type.getType(), standardStructureType.getType()) ||
!Objects.equals(type.getNameSpaceURI(), standardStructureType.getNameSpaceURI())) {
return type.getType().getValue();
}
} else if (standardType != null) {
StructureType standardTypeMap = org.verapdf.pd.structure.PDStructElem.getStructureTypeStandardStructureType(standardStructureType);
if (!Objects.equals(standardTypeMap.getType(), standardStructureType.getType()) ||
if (standardTypeMap == null || !Objects.equals(standardTypeMap.getType(), standardStructureType.getType()) ||
!Objects.equals(standardTypeMap.getNameSpaceURI(), standardStructureType.getNameSpaceURI())) {
return standardType;
}
Expand Down

0 comments on commit f263d2b

Please sign in to comment.