small possible nullpointerex fix (for accidental non-pdf/a-PDFs), new test

This commit is contained in:
jstaerk
2024-06-03 08:04:15 +02:00
parent ecdd74f792
commit b8720a16a0
4 changed files with 191 additions and 0 deletions

View File

@@ -142,6 +142,9 @@ public class ZUGFeRDImporter {
} else {
final List<PDNameTreeNode<PDComplexFileSpecification>> kids = etn.getKids();
if (kids == null) {
return;
}
for (final PDNameTreeNode<PDComplexFileSpecification> node : kids) {
final Map<String, PDComplexFileSpecification> namesL = node.getNames();
extractFiles(namesL);