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 244491 - In Output tab "Open Working Directory in Terminal" button generates NullPointerException
Summary: In Output tab "Open Working Directory in Terminal" button generates NullPoint...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 13:41 UTC by soldatov
Modified: 2014-09-19 09:13 UTC (History)
0 users

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 soldatov 2014-05-14 13:41:48 UTC
In Output tab "Open Working Directory in Terminal" button generates exception (Oracle Solaris Studio biweekly build) if project has been deleted.

java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$TermAction.actionPerformed(ProjectActionSupport.java:878)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6505)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	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.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	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 soldatov 2014-05-14 13:54:35 UTC
Scenario:
- Create Welcome
- Push "Profile Project to find Problems" button
- Call "Memory Access Errors" tool
- Delete Welcome project
- Close "Welcome_1 (Profile)" tab
==> now I see "Output - Welcome_1 (Build, Profile)" tab only
- Press "Open Working Directory in Terminal" button
==> NPE
Comment 2 Alexander Simon 2014-08-12 13:29:52 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/690eb1058ee5
Comment 3 Quality Engineering 2014-08-13 02:23:59 UTC
Integrated into 'main-silver', will be available in build *201408130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/690eb1058ee5
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244491 In Output tab "Open Working Directory in Terminal" button generates NullPointerException
Comment 4 Quality Engineering 2014-09-17 12:13:05 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/d90d72748b4c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244491 In Output tab "Open Working Directory in Terminal" button generates NullPointerException
(transplanted from 690eb1058ee515c0ffea8733f85ec557caed126c)
Comment 5 soldatov 2014-09-19 09:13:29 UTC
Verified in latest Oracle Solaris Studio build