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 33081 - [TTV] null pointer exception when requesting code completion
Summary: [TTV] null pointer exception when requesting code completion
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-04-20 13:25 UTC by jportway
Modified: 2008-12-22 19:10 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 jportway 2003-04-20 13:25:13 UTC
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)
Comment 1 pzajac 2003-04-22 08:56:27 UTC
reassigned to openide/explorer
Comment 2 Jiri Rechtacek 2003-04-22 13:16:20 UTC
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.
Comment 3 jportway 2003-04-22 19:39:26 UTC
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.
Comment 4 _ tboudreau 2003-12-15 17:37:48 UTC
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.
Comment 5 _ tboudreau 2004-07-25 15:41:07 UTC
The code in question is completely rewritten
Comment 6 Marian Mirilovic 2005-11-01 09:16:18 UTC
without any additional informations for long time - closed