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 32366 - NullPointerException
Summary: NullPointerException
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 15:57 UTC by _ hair
Modified: 2003-04-03 16:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log of run when it first happened (404.29 KB, text/plain)
2003-03-26 16:02 UTC, _ hair
Details
ide.log of run after restart (156.44 KB, text/plain)
2003-03-26 16:03 UTC, _ hair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hair 2003-03-26 15:57:11 UTC
(NetBeans Q-Build 200303202210)
(TaskList 0.9.0 beta 1)
(J2SDK1.4.1_02)

Something simliar to the category node
closing/opening bug happened.
From then on, every few keystrokes in the java
editor, a NullPointerException pops up. (Very
annoying). 
Restarting netbeans did not seem to help.

*********** Exception occurred ************ at Wed
Mar 26 16:11:12 CET 2003
java.lang.IllegalStateException:
VisualizerNode.getChildAt() returning null!
	at
org.openide.explorer.view.VisualizerNode.getChildAt(VisualizerNode.java:207)
	at
javax.swing.tree.DefaultTreeModel.getChild(DefaultTreeModel.java:156)
	at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1466)
	at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
	at
javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:725)
	at
javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(VariableHeightLayoutCache.java:626)
	at
javax.swing.plaf.basic.BasicTreeUI$TreeModelHandler.treeStructureChanged(BasicTreeUI.java:2469)
	at
javax.swing.tree.DefaultTreeModel.fireTreeStructureChanged(DefaultTreeModel.java:561)
	at
javax.swing.tree.DefaultTreeModel.nodeStructureChanged(DefaultTreeModel.java:345)
	at
org.openide.explorer.view.NodeTreeModel$Listener.reordered(NodeTreeModel.java:152)
	at
org.openide.explorer.view.VisualizerChildren.reordered(VisualizerChildren.java:168)
	at
org.openide.explorer.view.VisualizerEvent$Reordered.run(VisualizerEvent.java:175)
	at
org.openide.explorer.view.VisualizerNode$QP.run(VisualizerNode.java:466)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
*********** Exception occurred ************ at Wed
Mar 26 16:11:20 CET 2003
java.lang.NullPointerException
	at
org.openide.explorer.view.TreeTableView$14.compare(TreeTableView.java:930)
	at java.util.Arrays.mergeSort(Arrays.java:1237)
	at java.util.Arrays.sort(Arrays.java:1185)
	at java.util.Collections.sort(Collections.java:151)
	at
org.openide.explorer.view.TreeTableView$SortedNodeTreeModel.sortChildren(TreeTableView.java:1013)
	at
org.openide.explorer.view.TreeTableView$SortedNodeTreeModel.nodesChanged(TreeTableView.java:1099)
	at
javax.swing.tree.DefaultTreeModel.nodeChanged(DefaultTreeModel.java:261)
	at
org.openide.explorer.view.NodeTreeModel$Listener.update(NodeTreeModel.java:160)
	at
org.openide.explorer.view.VisualizerNode.run(VisualizerNode.java:344)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)




After closing all tasklist windows the
NullPointerException changes but continues to
popup every few keystrokes in the java editor.



Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.tasklist.suggestions.SuggestionManagerImpl.register(SuggestionManagerImpl.java:1436)
	at
org.netbeans.modules.tasklist.suggestions.SuggestionManagerImpl.register(SuggestionManagerImpl.java:1299)
	at
org.netbeans.modules.tasklist.javaparser.ErrorSuggester.errorsChanged(ErrorSuggester.java:143)
	at
org.netbeans.modules.tasklist.javaparser.ErrorSuggester.objectParsed(ErrorSuggester.java:958)
	at
org.netbeans.modules.java.Parsing.fireEvent(Parsing.java:61)
	at
org.netbeans.modules.java.parser.ParsingSupport$1.run(ParsingSupport.java:370)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:668)
Comment 1 _ hair 2003-03-26 16:02:03 UTC
Created attachment 9541 [details]
ide.log of run when it first happened
Comment 2 _ hair 2003-03-26 16:03:02 UTC
Created attachment 9542 [details]
ide.log of run after restart
Comment 3 Torbjorn Norbye 2003-03-27 16:29:07 UTC
Can you please upgrade to the latest version of the modules? I
recently (after the module version you're reporting) fixed a race
condition bug where occasionally, suggestion scanning will occur even
when the suggestions view is not visible (which it's not supposed to do).
Comment 4 Torbjorn Norbye 2003-03-29 00:37:54 UTC
I will mark this one as fixed. If you run into something similar with
current bits, please file a new issue. Thanks for your help!
Comment 5 _ hair 2003-04-03 16:52:34 UTC
sorry for the lack of response. (was busy moving house :) )
yes, with the latest version I do not get this anymore.
although something similar is happening, i will file it separately as
requested.