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.
Build: NetBeans IDE Dev (Build 201412270001) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Linux User Comments: vriha: just trying to create a new PHP unit test Stacktrace: java.lang.NullPointerException at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.saveProperties(PhpProjectProperties.java:762) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties$1.run(PhpProjectProperties.java:598) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties$1.run(PhpProjectProperties.java:595) at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:293) at org.openide.util.Mutex.writeAccess(Mutex.java:299) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.save(PhpProjectProperties.java:595)
Created attachment 151292 [details] stacktrace
Created attachment 151424 [details] stacktrace What I did: - create a new PHP project - create a new PHP class in sources - right click on the class file and try to create unit test - once asked for test folder, open file chooser, create a new folder in it and select it as unit test folder - follow IDE instructions, in last step, this NPE pops out
Increasing priority, there are simple steps to reproduce: - create a new PHP project - go to project properties - in category Testing, check any provider (e.g. PHPUnit) - close project properties with OK => NPE and the option is not saved, project still does not have any testing provider. As a result, I cannot use unit testing in PHP project (unless manually editing project.properties or similar file)
Created attachment 151524 [details] stacktrace I have created new PhpProject3, generated newPHPClass.php and then its Selenium newSeleneseTest.php counterpart. Tried to run the Selenium test but it didn't work. So I invoked Properties on the project, selected "Testing" category, checked "PHPUnit" testing provider and then clicked OK button.
Fanis, this is yours. Please fix it ASAP. Thanks.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=214472
Created attachment 151673 [details] stacktrace after check and save PHP Unit as a testing provider
Created attachment 151901 [details] stacktrace .
P1 opened more than 1 month => trying to fix it, Fanis please verify it. Thanks. http://hg.netbeans.org/web-main/rev/914aab03aa01
Integrated into 'main-silver', will be available in build *201502110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/914aab03aa01 User: Tomas Mysik <tmysik@netbeans.org> Log: #249538 - NullPointerException at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.saveProperties
(In reply to Tomas Mysik from comment #9) > P1 opened more than 1 month => trying to fix it, Fanis please verify it. > > Thanks. > > http://hg.netbeans.org/web-main/rev/914aab03aa01 This was a regression due to a typo after http://hg.netbeans.org/main-silver/rev/66dc1fd51c8d. Thank you Tomasi for taking care of it.
Verified, thank you Product Version: NetBeans IDE Dev (Build 201503040001) Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)