Skip to content

Commit

Permalink
Update metadata fixer. Fix isWrongPDFAIdentification
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Nov 1, 2023
1 parent 54ae00c commit de247ed
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 de247ed

Please sign in to comment.