"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fixup/processor/AcroFormOrphanWidgetsProcessor.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)