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.
i hit ctrl-space while typing and got the following exception. (i think ihad misspelled the variable name that i was requesting code completeion for, so there shouldn't have been any). I have been using the TaskList module too, so though that that may have cause the problem, howver the exception continued to be thrown when I pressed ctrl-space on the element even when all the task list views had been closed. ava.lang.NullPointerException at org.openide.explorer.view.TreeTableView$15.compare(TreeTableView.java:951) at java.util.Arrays.mergeSort(Arrays.java:1237) at java.util.Arrays.mergeSort(Arrays.java:1245) at java.util.Arrays.sort(Arrays.java:1185) at java.util.Collections.sort(Collections.java:151) at org.openide.explorer.view.TreeTableView$SortedNodeTreeModel.sortChildren(TreeTable View.java:1034) at org.openide.explorer.view.TreeTableView$SortedNodeTreeModel.nodesWereInserted(Tr eeTableView.java:1094) at org.openide.explorer.view.NodeTreeModel$Listener.added(NodeTreeModel.java:132) at org.openide.explorer.view.VisualizerChildren.added(VisualizerChildren.java:68) at org.openide.explorer.view.VisualizerEvent$Added.run(VisualizerEvent.java:83) [catch] 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) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:23 0) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
reassigned to openide/explorer
Joshua, could you attach build # and steps how to reproduce? Are you able to reproduce it repeatedly? Or did you see only once? I'm not able to reproduce on my build #030422, linux RH7. Thanks in advance.
I can't reproduce this easily. I suspect it is a problem with the Task List module corrupting something. The original Exception was produced using the 3.5 beta release on OSX. I'll see if I can reproduce it.
FYI, probably related to an issue re TTV generating large numbers of useless resort events, some of which can run while another thread is running. The quick fix would be for whoever made the call that triggered the NPE to make its call in the event queue. But what tree table view? AFAIK code completion doesn't use one... This won't be fixed until we rewrite TTV from scratch, most likely.
The code in question is completely rewritten
without any additional informations for long time - closed