Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4682

NPE at PDSimpleFont.isStandard14()

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16, 2.0.17
    • Fix Version/s: 2.0.18, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      PDSimpleFont.isStandard14() invokes:

       

      Encoding baseEncoding = dictionary.getBaseEncoding();
      for (Map.Entry<Integer, String> entry : dictionary.getDifferences().entrySet())
      {
          if (!entry.getValue().equals(baseEncoding.getName(entry.getKey())))
          {
              return false;
          }
      }
      

      if dictionary.getBaseEncoding() is null then the if-statement throws a NPE.

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              cowwoc Gili
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: