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 86790 - NPE when opening java/source module
Summary: NPE when opening java/source module
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2006-10-09 16:23 UTC by Max Sauer
Modified: 2007-08-06 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE stack trace (933 bytes, application/octet-stream)
2006-10-09 16:24 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-10-09 16:23:06 UTC
I'm getting following NPE while opening java/source out of retouche sources 
and expanded a node out of unit tests: 
 
java.lang.NullPointerException 
	at org.openide.nodes.Children$Keys.setKeys(Children.java:1988) 
	at 
org.netbeans.spi.java.project.support.ui.PackageViewChildren.refreshKeys(PackageViewChildren.java:202) 
	at 
org.netbeans.spi.java.project.support.ui.PackageViewChildren.access$000
(PackageViewChildren.java:92) 
[catch] at 
org.netbeans.spi.java.project.support.ui.PackageViewChildren$1.run(PackageViewChildren.java:211) 
... 
(whole stack trace attached) 
 
I'm not able to reproduce this and nothing seems to be broken. It was the 
first action I did after starting with a new userdir. 
 
--- 
NetBeans IDE Dev (Build 061009) 
1.5.0_05; Java HotSpot(TM) Server VM 1.5.0_05-b05 
Linux version 2.6.12-1.1390_FC4smp running on i386 
en_US (nb); UTF-8
Comment 1 Max Sauer 2006-10-09 16:24:03 UTC
Created attachment 35047 [details]
NPE stack trace
Comment 2 Jan Lahoda 2006-10-09 17:13:24 UTC
I do not think this is caused by retouche itself. Passing to java/project for
further evaluation.
Comment 3 Tomas Zezula 2007-01-04 10:59:51 UTC
The names2nodes map contains null as a key.
Comment 4 Milan Kubec 2007-06-22 10:08:10 UTC
No way to reproduce, I added assert, we will see.

Checking in PackageViewChildren.java;
/cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v  <--  PackageViewChildren.java
new revision: 1.80; previous revision: 1.79
done
Comment 5 Max Sauer 2007-08-06 16:11:55 UTC
I haven't seen this anymore. Marking as Verified.
---
Product Version: NetBeans IDE Dev (Build 070806) 
Java: 1.5.0_12; Java HotSpot(TM) 64-Bit Server VM 1.5.0_12-b04 
System: SunOS version 5.10 running on sparcv9; ISO646-US; en (nb) 
Userdir: /home/ms159439/.netbeans/dev