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 70895 - NullPointerException in public enum
Summary: NullPointerException in public enum
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-01 23:31 UTC by gulo
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 gulo 2006-01-01 23:31:45 UTC
----Site.java:----
package screen;

public enum Site {
  
}
------------------

If I write for example "int h = 5;" between "package screen;" and "public enum
Site", I get a NullPointerException every time.

java.lang.NullPointerException
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:434)
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:369)
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:331)
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:309)
	at org.netbeans.modules.javacore.parser.MDRParser.enterMembers(MDRParser.java:239)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:733)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:644)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateFromFileObject(ResourceImpl.java:449)
	at
org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(ExclusiveMutex.java:278)
	at org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveMutex.java:171)
	at org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl.java:227)
	at org.netbeans.modules.java.JavaEditor$2.run(JavaEditor.java:256)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904)
Comment 1 Jan Lahoda 2006-01-25 14:05:36 UTC
=>java/javacore, I was not able to reproduce the problem on a recent custom 5.0
build.
Comment 2 Jan Becicka 2006-02-28 13:08:34 UTC
Please attach your messages.log
Comment 3 Jan Becicka 2006-10-26 16:26:38 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 4 Quality Engineering 2007-09-20 09:45:36 UTC
Reorganization of java component