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

AllSwingComponentsBaselineTest fails with NullPointerException for NimbusLookAndFeel

XMLWordPrintable

    • b20
    • generic
    • generic

      Testsuite name: Swing
      Test name: AllSwingComponentsBaselineTest
      Product(s) tested: JDK 7
      OS/architecture: Windows / LInux (Generic)

      Reproducible: Always

      Is it a Regression: No, test also fails for 1.7.0 b148

      Is it a platform specific issue: No, Test also fails on OEL 7

      Exception/Error from Log:
      Exception in thread "main" java.lang.NullPointerException
              at javax.swing.plaf.synth.SynthButtonUI.getBaseline(SynthButtonUI.java:212)
              at AllSwingComponentsBaselineTest.testT134TC051(AllSwingComponentsBaselineTest.java:26)
              at AllSwingComponentsBaselineTest.main(AllSwingComponentsBaselineTest.java:11)

      Note: the test runs fine ( No exception is thrown ) without -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel

            psadhukhan Prasanta Sadhukhan
            vagarwal Vikrant Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: