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 37702 - NPE while closing Java file
Summary: NPE while closing Java file
Status: RESOLVED DUPLICATE of bug 38321
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-03 11:40 UTC by _ tboudreau
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 _ tboudreau 2003-12-03 11:40:04 UTC
When I closed a Java file using the Close All
Documents menu item the tab, the following
exception occured.  I think the problem is the
search for annotations is run in a
RequestProcessor, and gets processed after the
file is closed.

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.java.JavaEditor.findOverridenMethods(JavaEditor.java:478)
	at
org.netbeans.modules.java.JavaEditor.findOverridenMethods(JavaEditor.java:555)
	at
org.netbeans.modules.java.JavaEditor.processOverridenAnnotation(JavaEditor.java:565)
	at
org.netbeans.modules.java.JavaEditor.objectParsed(JavaEditor.java:328)
	at
org.netbeans.modules.java.JavaEditor$WParsingListener.objectParsed(JavaEditor.java:2738)
	at
org.netbeans.modules.java.Parsing.fireEvent(Parsing.java:61)
	at
org.netbeans.modules.java.parser.ParsingSupport$1.run(ParsingSupport.java:370)
	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:678)
Comment 1 Jan Pokorsky 2004-01-22 13:21:28 UTC

*** This issue has been marked as a duplicate of 38321 ***