You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.
Found PDFs created by Xero threw a NPE. Needed to handle null EMBEDDEDFILES.
PdfDictionary names = root.getAsDict(PdfName.NAMES);
PdfArray namesArray = null;
if (names != null) {
PdfDictionary embeddedFiles = names.getAsDict(PdfName.EMBEDDEDFILES);
// Added this: need to check this isnt null
if (embeddedFiles != null) {
namesArray = embeddedFiles.getAsArray(PdfName.NAMES);
}
}
The text was updated successfully, but these errors were encountered: