diff --git a/metadata-fixer/src/main/java/org/verapdf/metadata/fixer/gf/impl/model/MetadataImpl.java b/metadata-fixer/src/main/java/org/verapdf/metadata/fixer/gf/impl/model/MetadataImpl.java index 543a9fc3e..e5ae766ff 100644 --- a/metadata-fixer/src/main/java/org/verapdf/metadata/fixer/gf/impl/model/MetadataImpl.java +++ b/metadata-fixer/src/main/java/org/verapdf/metadata/fixer/gf/impl/model/MetadataImpl.java @@ -277,7 +277,7 @@ private boolean isWrongPDFAIdentification(PDFAFlavour flavour) { String schemaConformance = this.metadata.getPDFAIdentificationConformance(); return schemaPart != part || (part == 4 && !Objects.equals(conformance, schemaConformance)) || - ((part == 1 || part == 2 || part == 3) && compare(conformance, schemaConformance) > 0); + ((part == 1 || part == 2 || part == 3) && (schemaConformance == null || compare(conformance, schemaConformance) > 0)); } catch (XMPException e) { LOGGER.log(Level.FINE, "Can not obtain identification fields.", e); throw new IllegalStateException(e);