Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119405

ignored NPE loading jre font into font factory tables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx

      See T2KFontFactory#getFullNameToFileMap lines 1429-1439, that is where the jre fonts are loaded in the font factory tables.

      The bug is that this method eventually access the fontToFileMap table, which is null at this point (only initialized on line 1449).
      (the NPE is catched and ignored in the code (inside of populateFontFileNameMapGeneric).

      As results the jre fonts are not loaded properly, for example Font.getFontNames("Lucida Sans") returns an empty list.

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: