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

java.awt.Window.setBackground(null) throws NullPointerException

XMLWordPrintable

    • b66
    • generic, x86
    • generic, linux
    • Verified

      FULL PRODUCT VERSION :
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b59)
      Java HotSpot(TM) 64-Bit Server VM (build 16.0-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux localhost.localdomain 2.6.27.5-41.fc9.x86_64 #1 SMP Thu Nov 13 20:29:07 EST 2008 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      Attempting to set a Window's background to null throws an exception. null background has been supported in all prior versions of the JDK.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a java.awt.Window and try to set its background to null.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      You expect the null background to be a valid value.
      ACTUAL -
      java.lang.NullPointerException

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "main" java.lang.NullPointerException
      at java.awt.Window.setBackground(Window.java:3600)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 7
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

      Release Regression From : 7
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

            anthony Anthony Petrov (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: