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 - NPE at visitClassType() trying to open a java file.
Summary: NPE at visitClassType() trying to open a java file.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 18:47 UTC by _ pcw
Modified: 2007-10-12 20:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (5.67 KB, text/plain)
2007-06-12 18:47 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
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.