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

java/awt/FontMetrics/StyledSpaceAdvance.java fails with java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
      at java.desktop/java.awt.Font.getFont2D(Font.java:529)
      at java.desktop/java.awt.Font.getFontName(Font.java:1492)
      at StyledSpaceAdvance.test(StyledSpaceAdvance.java:51)
      at StyledSpaceAdvance.main(StyledSpaceAdvance.java:41)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:828)

      JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              achung Alisen Chung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: