plugins.file.readfile() issue in Ngclient

in NgClient

plugins.file.readFile() results in the below exception

java.lang.NullPointerException: null
at sun.awt.shell.Win32ShellFolder2.access$200(Unknown Source) ~[?:1.8.0_141]
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source) ~[?:1.8.0_141]
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source) ~[?:1.8.0_141]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:1.8.0_141]
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source) ~[?:1.8.0_141]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_141]

in the Servoy Configuration,
servoy.FileServerService.defaultFolder = C:.servoy\uploads\GUID
I’ve verified that tomcat is running under the SYSTEM account and SYSTEM has full control of the folder

What am I missing?

Thanks,

-patrick

plugins.file.readFile() without argument is not supported in the NG-client.

Do you want the user to upload a file? Then you should probably use ```
plugins.file.showFileOpenDialog(callbackFunction)

The callbackFunction is called when the user is finished with the dialog and gets an array of JSFiles as argument.