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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated: