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

NullPointer exception trying to construct a new JFIleChooser

XMLWordPrintable

      FULL PRODUCT VERSION :
      Java 6 Update 20

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Home SP3

      A DESCRIPTION OF THE PROBLEM :
      A stack trace occurs on new JFileChooser.

      java.lang.NullPointerException
             at java.awt.image.BufferedImage.setRGB(Unknown Source)
             at sun.awt.shell.Win32ShellFolderManager2.getStandardViewButton(Unknown
      Source)
             at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
             at sun.awt.shell.ShellFolder.get(Unknown Source)
             at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.cr
      eateValue(Unknown Source)
             at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
             at javax.swing.UIDefaults.get(Unknown Source)
             at javax.swing.MultiUIDefaults.get(Unknown Source)
             at javax.swing.UIDefaults.getIcon(Unknown Source)
             at javax.swing.UIManager.getIcon(Unknown Source)
             at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(Unknown Source
      )
             at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Unknown Sou
      rce)
             at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
             at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknow
      n Source)
             at javax.swing.JComponent.setUI(Unknown Source)
             at javax.swing.JFileChooser.updateUI(Unknown Source)
             at javax.swing.JFileChooser.setup(Unknown Source)
             at javax.swing.JFileChooser.<init>(Unknown Source)
             at javax.swing.JFileChooser.<init>(Unknown Source)

      This was reported by a customer and has just started happening, it didnt occur previously. I assuming the problem is either with Java 6 Update 20 or with a change in their hardware that has exposed an existing bug

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Unable to reproduce, just ocurring for one customer at the moment.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.NullPointerException

      REPRODUCIBILITY :
      This bug can be reproduced always.

            rupashka Pavel Porvatov (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: