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 50619 - [40cat] NPE from ClassIndex.containsIdentifier
Summary: [40cat] NPE from ClassIndex.containsIdentifier
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 14:40 UTC by meliandra
Modified: 2007-09-26 09:14 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 meliandra 2004-10-19 14:40:58 UTC
[ BUILD # : beta 2 ]
[ JDK VERSION : J2SE 1.5.0 ]

Netbeans hangs up so I killed the process.

Restart the IDE. Question with running instance ...

After finishing the classpath scan I get the error
message

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at java.util.Arrays.binarySearch(Arrays.java:1391)
	at
org.netbeans.modules.javacore.ClassIndex.containsIdentifier(ClassIndex.java:854)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.containsIdentifier(ResourceImpl.java:1115)
	at
org.netbeans.jmi.javamodel.Resource$Impl.containsIdentifier(Unknown
Source)
	at
org.netbeans.modules.java.JavaNode.hasMain(JavaNode.java:600)
	at
org.netbeans.modules.java.JavaNode.resolveIcons(JavaNode.java:564)
	at
org.netbeans.modules.java.JavaNode$4.run(JavaNode.java:769)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 _ rkubacki 2004-10-21 15:59:02 UTC
belongs to Java modules 
Comment 2 Martin Matula 2004-10-25 15:58:54 UTC
There was a lot of MDR inconsistency bugs fixed since beta2. I believe
one of them fixed this problem.
Comment 3 Quality Engineering 2007-09-20 10:57:48 UTC
Reorganization of java component