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

JavaFX file chooser allows browsing to phone device but then throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8u66
    • javafx

      FULL PRODUCT VERSION :
      runtime 8u66

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7+

      A DESCRIPTION OF THE PROBLEM :
      Caused by: java.lang.NullPointerException

      at java.io.File.(Unknown Source)

      at com.sun.glass.ui.CommonDialogs.createFileChooserResult(Unknown Source)

      at com.sun.glass.ui.win.WinCommonDialogs._showFileChooser(Native Method)

      at com.sun.glass.ui.win.WinCommonDialogs.showFileChooser_impl(Unknown Source)

      at com.sun.glass.ui.win.WinApplication.staticCommonDialogs_showFileChooser(Unknown Source)

      at com.sun.glass.ui.CommonDialogs.showFileChooser(Unknown Source)

      at com.sun.javafx.tk.quantum.QuantumToolkit.showFileChooser(Unknown Source)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Connect a phone, open a file chooser, select a file in your phone, click ok

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      a java.io.File

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

      at java.io.File.(Unknown Source)

      at com.sun.glass.ui.CommonDialogs.createFileChooserResult(Unknown Source)

      at com.sun.glass.ui.win.WinCommonDialogs._showFileChooser(Native Method)

      at com.sun.glass.ui.win.WinCommonDialogs.showFileChooser_impl(Unknown Source)

      at com.sun.glass.ui.win.WinApplication.staticCommonDialogs_showFileChooser(Unknown Source)

      at com.sun.glass.ui.CommonDialogs.showFileChooser(Unknown Source)

      at com.sun.javafx.tk.quantum.QuantumToolkit.showFileChooser(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

            ssadetsky Semyon Sadetsky (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: