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

[macosx]Jemmy: JFileChooserOperator.selectFile(..) throws NullPointerException on Mac

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
      None

      Description

      Jemmy version: 2
      JDK version : 9
      Platform : Mac

      The JFileChooserOperator is written to work for a list of files as a model for a JList. This is available on the List view mode of the filechooser on windows but as there is no List view on mac os this code does not work.

      Reproducible testcase:
      Please run fileOperatorTest.java as java fileOperatorBug.fileOperatorTest

      Please see sample test output.txt for the output we are getting on execution of fileOperatorTest.

      Exception:
      Exception in thread "main" java.lang.NullPointerException
      at org.netbeans.jemmy.operators.JFileChooserOperator$61.actionProduced(JFileChooserOperator.java:1491)
      at org.netbeans.jemmy.operators.JFileChooserOperator$61.actionProduced(JFileChooserOperator.java:1)
      at org.netbeans.jemmy.Waiter.actionProduced(Waiter.java:229)
      at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:203)
      at org.netbeans.jemmy.operators.JFileChooserOperator.waitPainted(JFileChooserOperator.java:1521)
      at org.netbeans.jemmy.operators.JFileChooserOperator.getFiles(JFileChooserOperator.java:761)
      at org.netbeans.jemmy.operators.JFileChooserOperator$65.actionProduced(JFileChooserOperator.java:1597)
      at org.netbeans.jemmy.operators.JFileChooserOperator$65.actionProduced(JFileChooserOperator.java:1)
      at org.netbeans.jemmy.Waiter.actionProduced(Waiter.java:229)
      at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:203)
      at org.netbeans.jemmy.operators.JFileChooserOperator.findFileIndex(JFileChooserOperator.java:1620)
      at org.netbeans.jemmy.operators.JFileChooserOperator.clickOnFile(JFileChooserOperator.java:470)
      at org.netbeans.jemmy.operators.JFileChooserOperator.clickOnFile(JFileChooserOperator.java:497)
      at org.netbeans.jemmy.operators.JFileChooserOperator.clickOnFile(JFileChooserOperator.java:535)
      at org.netbeans.jemmy.operators.JFileChooserOperator.selectFile(JFileChooserOperator.java:621)
      at fileOperatorBug.fileOperatorTest.main(fileOperatorTest.java:19)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              akolarkunnu Abdul Kolarkunnu
              Reporter:
              akolarkunnu Abdul Kolarkunnu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: