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 51029 - NullPointerException when editing root method
Summary: NullPointerException when editing root method
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 13:44 UTC by iformanek
Modified: 2007-02-20 18:21 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 iformanek 2004-11-01 13:44:40 UTC
Reported by Jon Christiansen:

Got this when trying to add a custom profiling 
for CPU
Selected Part of Application, hit Select, and 
added a method.
 
I then went back and highlighted the method I had 
just created and hit the "Edit" button, and got 
this.
 
*********** Exception occurred ************ at 
Fri Oct 22 15:44:53 CDT 2004
java.lang.NullPointerException
 at 
org.netbeans.netfluid.utils.Utilities.findElement
(Utilities.java:154)
 at 
org.netbeans.netfluid.ui.panels.RootMethodsPanel.a
ctionPerformed(RootMethodsPanel.java:174)
 at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
 at 
javax.swing.AbstractButton$ForwardActionEvents.act
ionPerformed(AbstractButton.java:1839)
 at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
 at 
javax.swing.plaf.basic.BasicButtonListener.mouseRe
leased(BasicButtonListener.java:245)
 at java.awt.Component.processMouseEvent
(Component.java:5100)
 at java.awt.Component.processEvent
(Component.java:4897)
 at java.awt.Container.processEvent
(Container.java:1569)
 at java.awt.Component.dispatchEventImpl
(Component.java:3615)
 at java.awt.Container.dispatchEventImpl
(Container.java:1627)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
 at 
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
 at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
 at java.awt.Container.dispatchEventImpl
(Container.java:1613)
 at java.awt.Window.dispatchEventImpl
(Window.java:1606)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForHierar
chy(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:151)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:141)
 at java.awt.Dialog$1.run(Dialog.java:540)
 at java.awt.Dialog.show(Dialog.java:561)
 at 
org.netbeans.core.windows.services.NbPresenter.sup
erShow(NbPresenter.java:722)
 at 
org.netbeans.core.windows.services.NbPresenter.doS
how(NbPresenter.java:765)
 at 
org.netbeans.core.windows.services.NbPresenter.run
(NbPresenter.java:753)
 at org.openide.util.Mutex.doEventAccess
(Mutex.java:924)
 at org.openide.util.Mutex.readAccess
(Mutex.java:158)
 at 
org.netbeans.core.windows.services.NbPresenter.sho
w(NbPresenter.java:738)
 at 
org.netbeans.netfluid.ui.panels.CustomProfilingPan
el.selectCallSubgraph
(CustomProfilingPanel.java:961)
 at 
org.netbeans.netfluid.ui.panels.CustomProfilingPan
el.selectSubgprahButtonActionPerformed
(CustomProfilingPanel.java:916)
 at 
org.netbeans.netfluid.ui.panels.CustomProfilingPan
el.access$800(CustomProfilingPanel.java:26)
 at 
org.netbeans.netfluid.ui.panels.CustomProfilingPan
el$9.actionPerformed
(CustomProfilingPanel.java:360)
 at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
 at 
javax.swing.AbstractButton$ForwardActionEvents.act
ionPerformed(AbstractButton.java:1839)
 at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
 at 
javax.swing.plaf.basic.BasicButtonListener.mouseRe
leased(BasicButtonListener.java:245)
 at java.awt.Component.processMouseEvent
(Component.java:5100)
 at java.awt.Component.processEvent
(Component.java:4897)
 at java.awt.Container.processEvent
(Container.java:1569)
 at java.awt.Component.dispatchEventImpl
(Component.java:3615)
 at java.awt.Container.dispatchEventImpl
(Container.java:1627)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
 at 
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
 at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
 at java.awt.Container.dispatchEventImpl
(Container.java:1613)
 at java.awt.Window.dispatchEventImpl
(Window.java:1606)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
 at 
java.awt.EventDispatchThread.pumpOneEventForHierar
chy(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:151)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:141)
 at java.awt.Dialog$1.run(Dialog.java:540)
 at java.awt.Dialog.show(Dialog.java:561)
 at 
org.netbeans.core.windows.services.NbPresenter.sup
erShow(NbPresenter.java:722)
 at 
org.netbeans.core.windows.services.NbPresenter.doS
how(NbPresenter.java:765)
 at 
org.netbeans.core.windows.services.NbPresenter.run
(NbPresenter.java:753)
 at org.openide.util.Mutex.doEventAccess
(Mutex.java:924)
 at org.openide.util.Mutex.readAccess
(Mutex.java:158)
 at 
org.netbeans.core.windows.services.NbPresenter.sho
w(NbPresenter.java:738)
 at 
org.netbeans.netfluid.ui.panels.CustomProfilingCon
figPanelLarge.actionPerformed
(CustomProfilingConfigPanelLarge.java:209)
 at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
 at 
javax.swing.AbstractButton$ForwardActionEvents.act
ionPerformed(AbstractButton.java:1839)
 at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
 at 
javax.swing.plaf.basic.BasicButtonListener.mouseRe
leased(BasicButtonListener.java:245)
 at java.awt.Component.processMouseEvent
(Component.java:5100)
 at java.awt.Component.processEvent
(Component.java:4897)
 at java.awt.Container.processEvent
(Container.java:1569)
 at java.awt.Component.dispatchEventImpl
(Component.java:3615)
 at java.awt.Container.dispatchEventImpl
(Container.java:1627)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
 at 
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
 at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
 at java.awt.Container.dispatchEventImpl
(Container.java:1613)
 at java.awt.Window.dispatchEventImpl
(Window.java:1606)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
 at 
java.awt.EventDispatchThread.pumpOneEventForHierar
chy(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:151)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:141)
 at java.awt.Dialog$1.run(Dialog.java:540)
 at java.awt.Dialog.show(Dialog.java:561)
 at 
org.netbeans.core.windows.services.NbPresenter.sup
erShow(NbPresenter.java:722)
 at 
org.netbeans.core.windows.services.NbPresenter.doS
how(NbPresenter.java:765)
 at 
org.netbeans.core.windows.services.NbPresenter.run
(NbPresenter.java:753)
 at org.openide.util.Mutex.doEventAccess
(Mutex.java:924)
 at org.openide.util.Mutex.readAccess
(Mutex.java:158)
 at 
org.netbeans.core.windows.services.NbPresenter.sho
w(NbPresenter.java:738)
 at 
org.netbeans.netfluid.actions.ProfilingSupport.mod
ifyProfiling(ProfilingSupport.java:182)
 at 
org.netbeans.netfluid.actions.ModifyProfilingActio
n.performAction(ModifyProfilingAction.java:33)
 at 
org.openide.util.actions.CallableSystemAction$1.ru
n(CallableSystemAction.java:78)
 at 
org.openide.util.actions.CallableSystemAction.doPe
rformAction(CallableSystemAction.java:116)
 at 
org.openide.util.actions.CallableSystemAction.acti
onPerformed(CallableSystemAction.java:76)
 at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
 at 
javax.swing.AbstractButton$ForwardActionEvents.act
ionPerformed(AbstractButton.java:1839)
 at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
 at javax.swing.AbstractButton.doClick
(AbstractButton.java:289)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1113)
 at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputH
andler.mouseReleased(BasicMenuItemUI.java:943)
 at java.awt.Component.processMouseEvent
(Component.java:5100)
 at java.awt.Component.processEvent
(Component.java:4897)
 at java.awt.Container.processEvent
(Container.java:1569)
 at java.awt.Component.dispatchEventImpl
(Component.java:3615)
 at java.awt.Container.dispatchEventImpl
(Container.java:1627)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
 at 
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
 at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
 at java.awt.Container.dispatchEventImpl
(Container.java:1613)
 at java.awt.Window.dispatchEventImpl
(Window.java:1606)
 at java.awt.Component.dispatchEvent
(Component.java:3477)
 at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
 at 
java.awt.EventDispatchThread.pumpOneEventForHierar
chy(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForHierarch
y(EventDispatchThread.java:151)
 at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:145)
 at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:137)
 at java.awt.EventDispatchThread.run
(EventDispatchThread.java:100)
Comment 1 iformanek 2004-11-01 13:45:45 UTC
Fixed in M3
Comment 2 ehucka 2006-10-09 12:10:49 UTC
Verification of old issues.
Comment 3 Alexander Kouznetsov 2007-02-12 22:55:45 UTC
Closing old issues.
Comment 4 Alexander Kouznetsov 2007-02-20 18:21:18 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.