AcroFormOrphanWidgetsProcessor.java (pdfbox-2.0.23-src) | : | AcroFormOrphanWidgetsProcessor.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 188 | skipping to change at line 188 | |||
parent = parent.getCOSDictionary(COSName.PARENT); | parent = parent.getCOSDictionary(COSName.PARENT); | |||
if (parent == null) | if (parent == null) | |||
{ | { | |||
return null; | return null; | |||
} | } | |||
} | } | |||
if (nonTerminalFieldsMap.get(parent.getString(COSName.T)) == null) | if (nonTerminalFieldsMap.get(parent.getString(COSName.T)) == null) | |||
{ | { | |||
PDField field = PDFieldFactory.createField(acroForm, parent, null); | PDField field = PDFieldFactory.createField(acroForm, parent, null); | |||
nonTerminalFieldsMap.put(field.getFullyQualifiedName(),field); | if (field != null) | |||
{ | ||||
nonTerminalFieldsMap.put(field.getFullyQualifiedName(), field); | ||||
} | ||||
return field; | return field; | |||
} | } | |||
// this should not happen | // this should not happen | |||
return null; | return null; | |||
} | } | |||
/* | /* | |||
* Lookup the font used in the default appearance and if this is | * Lookup the font used in the default appearance and if this is | |||
* not available try to find a suitable font and use that. | * not available try to find a suitable font and use that. | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added |