This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249739 - NullPointerException at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractor.init
Summary: NullPointerException at org.netbeans.modules.selenium2.webclient.protractor.C...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks: 249653
  Show dependency tree
 
Reported: 2015-01-12 07:57 UTC by Vladimir Riha
Modified: 2015-03-12 20:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214715


Attachments
stacktrace (3.46 KB, text/plain)
2015-01-12 07:57 UTC, Vladimir Riha
Details
stacktrace (3.46 KB, text/plain)
2015-03-06 11:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-01-12 07:57:51 UTC
Build: NetBeans IDE Dev (Build 201501120001)
VM: Java HotSpot(TM) Client VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
vriha: opening project properties when Protractor is not on PATH but just only local one in node_modules




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractor.init(CustomizerProtractor.java:149)
   at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractor.<init>(CustomizerProtractor.java:86)
   at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractorPanel.getComponent(CustomizerProtractorPanel.java:94)
   at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractorPanel.addChangeListener(CustomizerProtractorPanel.java:83)
   at org.netbeans.modules.selenium2.webclient.ui.customizer.CustomizerSeleniumTesting.providerChanged(CustomizerSeleniumTesting.java:141)
   at org.netbeans.modules.selenium2.webclient.ui.customizer.CustomizerSeleniumTesting$ProviderActionListener.actionPerformed(CustomizerSeleniumTesting.java:275)
Comment 1 Vladimir Riha 2015-01-12 07:57:53 UTC
Created attachment 151447 [details]
stacktrace
Comment 2 Vladimir Riha 2015-01-12 07:59:46 UTC
Precise steps to reproduce:
 - do not have protractor on PATH
 - in IDE, create a new HTML/JS sample project AngularJSPhoneCatalog
 - invoke NPM install and wait for it to finish
 - open project properties, select Selenium Testing and select Protractor as a provider
Comment 3 Vladimir Riha 2015-01-12 08:20:07 UTC
Btw. It happens on Windows even if protractor is on PATH
Comment 4 Vladimir Riha 2015-03-06 11:07:55 UTC
Created attachment 152428 [details]
stacktrace

Trying to set Protractor in HTML5 project's properties dialog in Selenium Testing category
Comment 5 Theofanis Oikonomou 2015-03-06 16:00:54 UTC
Changeset: b7c4dd5e9b3b
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-03-06 17:00
Message:
Comment 6 Quality Engineering 2015-03-07 08:42:09 UTC
Integrated into 'main-silver', will be available in build *201503070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b7c4dd5e9b3b
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #249739 - NullPointerException at org.netbeans.modules.selenium2.webclient.protractor.CustomizerProtractor.init
Comment 7 Vladimir Riha 2015-03-12 20:55:34 UTC
Verified, thank you

Product Version: NetBeans IDE Dev (Build 201503121016)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)