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 241018 - php options throws exception
Summary: php options throws exception
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-27 15:51 UTC by Kenneth Ganfield
Modified: 2014-01-29 02:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2014-01-27 15:51:02 UTC
Product Version: NetBeans IDE Dev (Build 201401270001)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Fresh install, full edition
1. Open Options window
2. Click PHP category
I see a message that I need to activate php so I click button to activate it.

I then see a constant stream of the following exceptions. The exceptions dialog takes focus so that I am unable to use the exception reporter.

SEVERE [global]
java.lang.NullPointerException
	at org.netbeans.modules.php.project.ui.options.PhpOptionsPanelController.areOptionsChanged(PhpOptionsPanelController.java:89)
	at org.netbeans.modules.php.project.ui.options.BaseOptionsPanelController.isChanged(BaseOptionsPanelController.java:113)
	at org.netbeans.modules.options.TabbedController.isChanged(TabbedController.java:158)
	at org.netbeans.modules.options.CategoryModel$Category.isChanged(CategoryModel.java:424)
	at org.netbeans.modules.options.CategoryModel$Category.access$1400(CategoryModel.java:326)
	at org.netbeans.modules.options.CategoryModel.isChanged(CategoryModel.java:249)
	at org.netbeans.modules.options.OptionsPanel.isChanged(OptionsPanel.java:350)
	at org.netbeans.modules.options.OptionsDisplayerImpl$1$1.run(OptionsDisplayerImpl.java:250)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 Kenneth Ganfield 2014-01-27 16:00:29 UTC
This is extremely annoying. Now I cannot use the Options window. 
PHP plugin is installed (if I look at the new project wizard), but if I open the Options window, which is on PHP category I cannot do anything or change the category because of the constant exceptions.

After restarting the IDE I can use the Options window except for PHP category. If I click that category the exceptions start again.
Comment 2 Tomas Mysik 2014-01-28 09:49:19 UTC
@theofanis: FYI, second NPE related to your latest changes. I am a bit afraid that similar NPE can occur on more other places you changed recently as well...

Should be fixed, I hope.

http://hg.netbeans.org/web-main/rev/960534bc641d
Comment 3 Quality Engineering 2014-01-29 02:52:59 UTC
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/960534bc641d
User: Tomas Mysik <tmysik@netbeans.org>
Log: #241018 - php options throws exception