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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated: