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 249538 - NullPointerException at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.saveProperties
Summary: NullPointerException at org.netbeans.modules.php.project.ui.customizer.PhpPro...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-27 17:29 UTC by Vladimir Riha
Modified: 2015-03-04 15:40 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214472


Attachments
stacktrace (4.83 KB, text/plain)
2014-12-27 17:29 UTC, Vladimir Riha
Details
stacktrace (4.83 KB, text/plain)
2015-01-09 15:36 UTC, Vladimir Riha
Details
stacktrace (4.83 KB, text/plain)
2015-01-15 14:51 UTC, Jiri Kovalsky
Details
stacktrace (4.83 KB, text/plain)
2015-01-24 20:12 UTC, Exceptions Reporter
Details
stacktrace (7.54 KB, text/plain)
2015-02-09 14:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-12-27 17:29:52 UTC
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)
Comment 1 Vladimir Riha 2014-12-27 17:29:53 UTC
Created attachment 151292 [details]
stacktrace
Comment 2 Vladimir Riha 2015-01-09 15:36:26 UTC
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
Comment 3 Vladimir Riha 2015-01-09 15:40:08 UTC
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)
Comment 4 Jiri Kovalsky 2015-01-15 14:51:41 UTC
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.
Comment 5 Tomas Mysik 2015-01-19 08:03:48 UTC
Fanis, this is yours. Please fix it ASAP. Thanks.
Comment 6 Exceptions Reporter 2015-01-20 23:39:47 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=214472
Comment 7 Exceptions Reporter 2015-01-24 20:12:50 UTC
Created attachment 151673 [details]
stacktrace

after check and save PHP Unit as a testing provider
Comment 8 Exceptions Reporter 2015-02-09 14:06:26 UTC
Created attachment 151901 [details]
stacktrace

.
Comment 9 Tomas Mysik 2015-02-10 10:27:14 UTC
P1 opened more than 1 month => trying to fix it, Fanis please verify it.

Thanks.

http://hg.netbeans.org/web-main/rev/914aab03aa01
Comment 10 Quality Engineering 2015-02-11 03:33:59 UTC
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
Comment 11 Theofanis Oikonomou 2015-03-02 11:00:10 UTC
(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.
Comment 12 Vladimir Riha 2015-03-04 15:40:33 UTC
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)