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 191593 - java.lang.NullPointerException: The fileObject parameter cannot be null
Summary: java.lang.NullPointerException: The fileObject parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 normal with 2 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 11:43 UTC by DanForys
Modified: 2011-06-16 19:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of dialog (46.13 KB, image/png)
2010-11-03 11:54 UTC, DanForys
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DanForys 2010-11-03 11:43:53 UTC
Attempting to configure Path Mapping for xdebug in the PHP release of Netbeans 6.9.1

In the 'Advanced Web Configuration' dialog I am able to add and remove path mappings and set their 'Server Path'. However, I am unable to set the Project Path. Clicking the field or the ellipsis does nothing. I expect to see a file dialog.

Note that previously configured paths from Netbeans 6.9.0 appear fine, but I am also unable to edit them in the same way.
Comment 1 DanForys 2010-11-03 11:54:59 UTC
Created attachment 102774 [details]
Screen shot of dialog

Added screen shot - not sure if it's the OSX theme in general, but it looks like the ellipsis are greyed out.
Comment 2 DanForys 2010-11-05 11:09:17 UTC
Just noticed the error icon appear when I click it. The stack dump is:

java.lang.NullPointerException: The fileObject parameter cannot be null
	at org.openide.util.Parameters.notNull(Parameters.java:89)
	at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1548)
	at org.netbeans.modules.php.project.ui.actions.support.CommandUtils.isUnderSources(CommandUtils.java:170)
	at org.netbeans.modules.php.project.ui.actions.support.CommandUtils.isUnderAnySourceGroup(CommandUtils.java:214)
	at org.netbeans.modules.php.project.ui.customizer.RunAsWebAdvanced$LocalPathCellMouseListener.getLastFolder(RunAsWebAdvanced.java:757)
	at org.netbeans.modules.php.project.ui.customizer.RunAsWebAdvanced$LocalPathCellMouseListener.mouseClicked(RunAsWebAdvanced.java:741)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
	at java.awt.Component.processMouseEvent(Component.java:6351)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6113)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4714)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4291)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
	at java.awt.Dialog$1.run(Dialog.java:1046)
	at java.awt.Dialog$3.run(Dialog.java:1098)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1096)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1006)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1040)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1028)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:121)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
	at org.openide.util.Mutex.readAccess(Mutex.java:271)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1013)
	at java.awt.Component.show(Component.java:1563)
	at java.awt.Component.setVisible(Component.java:1515)
	at java.awt.Window.setVisible(Window.java:842)
	at java.awt.Dialog.setVisible(Dialog.java:986)
	at org.netbeans.modules.php.project.ui.customizer.RunAsWebAdvanced.open(RunAsWebAdvanced.java:184)
	at org.netbeans.modules.php.project.ui.customizer.RunAsLocalWeb.advancedButtonActionPerformed(RunAsLocalWeb.java:391)
	at org.netbeans.modules.php.project.ui.customizer.RunAsLocalWeb.access$800(RunAsLocalWeb.java:76)
	at org.netbeans.modules.php.project.ui.customizer.RunAsLocalWeb$3.actionPerformed(RunAsLocalWeb.java:294)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6348)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6113)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4714)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4544)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 3 Tomas Mysik 2011-06-03 10:20:45 UTC
Batch reassigning.
Comment 4 Tomas Mysik 2011-06-15 14:27:31 UTC
Hopefully fixed & backported to release701 branch.

http://hg.netbeans.org/web-main/rev/e1c35ed19680
http://hg.netbeans.org/releases/rev/a3ffe74d2024
Comment 5 Quality Engineering 2011-06-16 19:57:44 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e1c35ed19680
User: Tomas Mysik <tmysik@netbeans.org>
Log: #191593 - java.lang.NullPointerException: The fileObject parameter cannot be null