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

NPE at PDSimpleFont.isStandard14()

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.16, 2.0.17
    • 2.0.18, 3.0.0 PDFBox
    • PDModel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: