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

Some SynthUI classes can request to create a SynthContext with null fields

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 9
    • client-libs
    • None

    Description

      public SynthContext constructor does not allow to use null arguments: @throws NullPointerException if component, region of style is null.

      However, SynthLabelUI uses the SynthContext.getContext() method with null style.

      Steps to reproduce:
      - run a conditional breakpoint to SynthContext.getContext() method
      - debug SwingSet2 application
      - select Nimbus L&F

      The SynthContext.getContext() method is called with null style.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: