Re: Re: NPE on "Fix" action

Andrew Gaydenko <[email protected]> Mon, 8 Dec 2003 12:09:07 +0300
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Petr,

Sorry, I can not understand with my English :-), is it worth to report
new bug or not in such situation.

OK, I have enabled assertion for NB. New stack is below.

Andrew

=======================================================
java.lang.AssertionError
	at org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionNode.java:160)
	at org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionNode.java:161)
	at org.netbeans.modules.tasklist.suggestions.FixAction.performAction(FixAction.java:77)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:193)
	at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78)
	at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:135)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:184)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(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.mouseReleased(BasicButtonListener.java:245)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at org.openide.awt.ToolbarButton.processMouseEvent(ToolbarButton.java:29)
	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)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(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)


======= On Mon December 8 2003 11:56, Petr Kuzel wrote: =======
Andrew Gaydenko wrote:
> The NPE shown below takes place when I try to "Fix" unused
> imports found by PMD.
>
> Probably, the tasklist module is in interim state, so I'm not
> sure bug reporting is needed.

Sure, bugs in mails are not traced and module then
seems perfect from bug statistics point of view
(primary quality view).

> ==========================
> java.lang.NullPointerException
>org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(SuggestionN
>ode.java:161)
> org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(Suggestion
>Node.java:161)
> org.netbeans.modules.tasklist.suggestions.SuggestionNode.getView(Suggestion
>Node.java:161)

You have disabled assertions. Use -J-ea option to catch
these issues earlier (here by one line :-) in dev builds.

  Cc.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]