{"action":"created","issue":{"url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/188","labels_url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/188/comments","events_url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/188/events","html_url":"https://github.com/Nodeclipse/nodeclipse-1/issues/188","id":67117025,"number":188,"title":"PhantomJS Project in Eclipse (with Nodeclipse): NullPointerException when trying to run js file that is present in a folder","user":{"login":"Little-Panda","id":11750928,"avatar_url":"https://avatars.githubusercontent.com/u/11750928?v=3","gravatar_id":"","url":"https://api.github.com/users/Little-Panda","html_url":"https://github.com/Little-Panda","followers_url":"https://api.github.com/users/Little-Panda/followers","following_url":"https://api.github.com/users/Little-Panda/following{/other_user}","gists_url":"https://api.github.com/users/Little-Panda/gists{/gist_id}","starred_url":"https://api.github.com/users/Little-Panda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Little-Panda/subscriptions","organizations_url":"https://api.github.com/users/Little-Panda/orgs","repos_url":"https://api.github.com/users/Little-Panda/repos","events_url":"https://api.github.com/users/Little-Panda/events{/privacy}","received_events_url":"https://api.github.com/users/Little-Panda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/labels/phantomjs","name":"phantomjs","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-08T12:22:42Z","updated_at":"2015-04-10T10:53:53Z","closed_at":null,"body":"Nodeclipse plugin version: Nodeclipse PhantomJS 0.17 (see screenshot nodeclipse 0.17)\r\nEclipse Version: Luna Service Release 1 (4.4.1)\r\nStackoverflow question: http://stackoverflow.com/questions/29457542/phantomjs-project-in-eclipse-with-nodeclipse-nullpointerexception-when-trying\r\n\r\nReproducible: Yes - consistently\r\n\r\nDescription:\r\nAfter creating a PhantomJS Project, if we create a javascript file and place it in any folder created under the project and try to run the .js file, a NullPointerException is being thrown in Eclipse. Note that if we don't create any folder structure under the project and try to run the .js files, the scripts run fine. Basically, any attempt to run a script placed inside a folder gives an error. (see screenshot \"Folder structure.png\"). \r\n\r\nSteps:\r\n1. Install Nodeclipse PhantomJS plugin 0.17 from the Eclipse marketplace\r\n2. Launch Eclipse and click on File->New->PhantomJS Project\r\n3. Give a name the project, enter other details and click on Finish\r\n4. Under your PhantomJS project, create any folder\r\n5. Right click on the folder created and select New->JavaScript file\r\n6. Enter any piece of code in the .js file (Ex. console.log(\"Hello World\");) and run the .js file.\r\n\r\nExpected result:\r\nScript should run without any errors\r\n\r\nActual result: \r\nUser is getting a NullPointerException. (see screenshots Error1.png and Error2.png)\r\n\r\nException details:\r\n\r\nAn internal error occurred during: \"Launching PhantomJSTest-Test1.js\".\r\njava.lang.NullPointerException\r\n\r\nAdditional details:\r\n\r\njava.lang.NullPointerException\r\n\tat org.nodeclipse.phantomjs.launch.LaunchConfigurationDelegate.launch(LaunchConfigurationDelegate.java:81)\r\n\tat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)\r\n\tat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)\r\n\tat org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)\r\n\tat org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)\r\n\r\n\r\n\r\n![nodeclipse 0 17](https://cloud.githubusercontent.com/assets/11750928/7044877/b0483ed0-de15-11e4-95f0-f1fec1c76c9c.PNG)\r\n![error2](https://cloud.githubusercontent.com/assets/11750928/7044995/f4973e00-de16-11e4-818b-bd211cc9dd6b.PNG)\r\n![nullpointerexception](https://cloud.githubusercontent.com/assets/11750928/7044997/f49fd8e4-de16-11e4-8b38-54e040b48f54.PNG)\r\n![error1](https://cloud.githubusercontent.com/assets/11750928/7044996/f49c2d16-de16-11e4-98cc-6392e455f82f.PNG)\r\n![folder structure](https://cloud.githubusercontent.com/assets/11750928/7045025/3527cb4c-de17-11e4-84c1-9cdabedd71a0.PNG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/comments/91514611","html_url":"https://github.com/Nodeclipse/nodeclipse-1/issues/188#issuecomment-91514611","issue_url":"https://api.github.com/repos/Nodeclipse/nodeclipse-1/issues/188","id":91514611,"user":{"login":"paulvi","id":1614482,"avatar_url":"https://avatars.githubusercontent.com/u/1614482?v=3","gravatar_id":"","url":"https://api.github.com/users/paulvi","html_url":"https://github.com/paulvi","followers_url":"https://api.github.com/users/paulvi/followers","following_url":"https://api.github.com/users/paulvi/following{/other_user}","gists_url":"https://api.github.com/users/paulvi/gists{/gist_id}","starred_url":"https://api.github.com/users/paulvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulvi/subscriptions","organizations_url":"https://api.github.com/users/paulvi/orgs","repos_url":"https://api.github.com/users/paulvi/repos","events_url":"https://api.github.com/users/paulvi/events{/privacy}","received_events_url":"https://api.github.com/users/paulvi/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T10:53:53Z","updated_at":"2015-04-10T10:53:53Z","body":"What is .js file path?\r\nWhat is Project path?"}}