Skip to content

Commit

Permalink
Merge pull request #605 from veraPDF/metadata_fixer
Browse files Browse the repository at this point in the history
Update metadata fixer. Fix isWrongPDFAIdentification
  • Loading branch information
MaximPlusov authored and Git User committed Nov 1, 2023
1 parent b024d65 commit 59fc17d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59fc17d

Please sign in to comment.