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

FileDialog throws null exception if Macintosh_HD is selected as the folder.

XMLWordPrintable

    • x86
    • os_x

      FULL PRODUCT VERSION :
      1.8.0_45-b14

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X 10.10
      uname -a:
      Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Bug is being reported when Java 8 JVM is run on a Mac OS X 10.10. Don't know whether it also applies to other OSes or Java versions


      A DESCRIPTION OF THE PROBLEM :
      A NULL pointer exception is thrown when the FileDialog class is invoked for selecting a folder and the Macintosh_HD item is selected:

      at sun.lwawt.macosx.CFileDialog$Task.run(CFileDialog.java:83)
      at java.lang.Thread.run(Thread.java:745)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      FileDialog f=new FileDialog(parentFrame);
      System.setProperty("apple.awt.fileDialogForDirectories", false):
       f.setVisible(true);


      /* Now select Macintosh_HD as the item using the drop-down menu at the top of the FileDialog window to see the exception.
      */

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected result is to open the Macintosh_HD location in FileFolder.
      ACTUAL -
      Null pointer exception.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      at sun.lwawt.macosx.CFileDialog$Task.run(CFileDialog.java:83)
      at java.lang.Thread.run(Thread.java:745)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      See the Steps to Reproduce section above.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None found.

      SUPPORT :
      YES

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: