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 49438 - nullPointerException at org.openide.src.nodes.SourceChildren.addKeysOfType(SourceChildren.java:315)
Summary: nullPointerException at org.openide.src.nodes.SourceChildren.addKeysOfType(So...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 49437 50036 50721 51407 52352 52746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-22 19:53 UTC by lynggaard
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log (960.07 KB, text/plain)
2004-09-22 19:55 UTC, lynggaard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lynggaard 2004-09-22 19:53:34 UTC
I hope this is the right module, I'm not really
sure where to put it, but it happend during normal
editor use.

*********** Exception occurred ************ at
8:47 PM on Sep 22, 2004
java.lang.NullPointerException
	at
org.openide.src.nodes.SourceChildren.addKeysOfType(SourceChildren.java:315)
	at
org.openide.src.nodes.SourceChildren.refreshAllKeys(SourceChildren.java:292)
	at
org.openide.src.nodes.SourceChildren.refreshKeys(SourceChildren.java:278)
	at
org.openide.src.nodes.SourceChildren.access$200(SourceChildren.java:47)
	at
org.openide.src.nodes.SourceChildren$1.run(SourceChildren.java:341)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Full log will be attached..
Comment 1 lynggaard 2004-09-22 19:55:31 UTC
Created attachment 17811 [details]
ide log
Comment 2 Martin Matula 2004-09-23 09:08:54 UTC
Looks like a problem in nodes. Honzo, please evaluate.
Comment 3 Jan Pokorsky 2004-09-23 14:23:18 UTC
*** Issue 49437 has been marked as a duplicate of this issue. ***
Comment 4 Jan Pokorsky 2004-09-23 14:31:45 UTC
Not in nodes but in the src bridge. Dane how is it possible that
SourceElement.getAllClasses() or SourceElement.getClasses() return
null as element of the array? It breaks the api contract.
Comment 5 Daniel Prusa 2004-09-27 13:53:08 UTC
It does not seem that it can occur in the src bridge, but, inspecting
the code of SourceElement implementation in the clazz module, I have
found that null in array can possibly be returned by getClasses and
getAllClasses there - it is fixed now.

Since I am not sure whether the fix covers your case (it is not
related to "normal editor use" so much), feel free to reopen the issue
if you encounter the exception again. Also, if it is reliably
reproducible, describe steps how to do it.

fixed by:
/cvs/clazz/src/org/netbeans/modules/clazz/SourceElementImpl.java,v <--
 SourceElementImpl.java
new revision: 1.32; previous revision: 1.31
Comment 6 Jan Pokorsky 2004-10-14 13:38:12 UTC
*** Issue 50036 has been marked as a duplicate of this issue. ***
Comment 7 Martin Matula 2004-10-25 09:22:16 UTC
*** Issue 50721 has been marked as a duplicate of this issue. ***
Comment 8 Petr Hrebejk 2004-11-16 09:28:41 UTC
*** Issue 51407 has been marked as a duplicate of this issue. ***
Comment 9 Martin Roskanin 2004-12-21 11:38:37 UTC
*** Issue 52352 has been marked as a duplicate of this issue. ***
Comment 10 Jan Pokorsky 2005-02-17 14:49:48 UTC
*** Issue 52746 has been marked as a duplicate of this issue. ***
Comment 11 Quality Engineering 2007-09-20 09:50:48 UTC
Reorganization of java component