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 106418

Summary: NPE at visitClassType() trying to open a java file.
Product: java Reporter: _ pcw <pcw>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: stack trace

Description _ pcw 2007-06-12 18:47:23 UTC
I double clicked to open a file I hadn't opened previously in the session and got this NPE, see attached for full trace.

java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$14.visitClassType(Types.java:1279)
        at com.sun.tools.javac.code.Types$14.visitClassType(Types.java:1300)
        at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:553)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3157)
        ...

I had left my IDE sitting open all night and this was my first action in the morning.  I know in general this doesn't
matter, but in case this is a race condition, most of the IDE had been flushed to swap because of a firefox memory leak.
 I was also running a cvs checkout of related files in another shell.
Comment 1 _ pcw 2007-06-12 18:47:55 UTC
Created attachment 43564 [details]
stack trace
Comment 2 Jan Lahoda 2007-10-12 20:01:08 UTC
A lot of changed in parser since this bug was filled (and IIRC I was not able to reproduce it back then). So I am
closing this issue for now, please reopen if it happens again (and provide as much information as possible). Thanks.