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 51195 - [40cat] NPE during startup and code completion
Summary: [40cat] NPE during startup and code completion
Status: RESOLVED DUPLICATE of bug 50895
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-05 11:04 UTC by skesper
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 skesper 2004-11-05 11:04:57 UTC
[ BUILD # : 200410261800 ]
[ JDK VERSION : J2SE 1.5.0 ]

I've created a new project. Created one class.
During this time a heavy download process was
finished and my computer swapped around on the
hard drive.

I've tried to get a code completion for the java
package. The IDE freezed for a while then the null
pointer exception raised. And now it raises every
time I startup with that specific project. Maybe
it's broken. But how can that be?

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.javacore.parser.Scope.createTypeScope(Scope.java:166)
	at
org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:297)
	at
org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:276)
	at
org.netbeans.modules.javacore.parser.MDRParser.enterMembers(MDRParser.java:207)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:640)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:553)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:505)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.checkUpToDate(SemiPersistentElement.java:240)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getClassifiers(ResourceImpl.java:154)
	at
org.netbeans.jmi.javamodel.Resource$Impl.getClassifiers(Unknown
Source)
	at
org.netbeans.modules.java.ui.nodes.elements.SourceEditSupport.getAllClasses(SourceEditSupport.java:779)
	at
org.netbeans.modules.java.ui.nodes.elements.SourceChildren.addKeysOfType(SourceChildren.java:351)
	at
org.netbeans.modules.java.ui.nodes.elements.SourceChildren.collectKeysImpl(SourceChildren.java:325)
	at
org.netbeans.modules.java.ui.nodes.elements.SourceChildren.collectKeys(SourceChildren.java:371)
	at
org.netbeans.modules.java.ui.nodes.elements.ChildrenProvider.run(ChildrenProvider.java:84)
	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 Jan Chalupa 2004-11-08 22:43:05 UTC
Re-assigning to java. May be a duplicate.
Comment 2 Martin Matula 2004-11-09 09:39:44 UTC
This was caused by a bug in error recovery and is already fixed.

*** This issue has been marked as a duplicate of 50895 ***
Comment 3 Quality Engineering 2007-09-20 12:50:47 UTC
Reorganization of java component