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 70440 - NullPointerException @ ...javacore.parser.MDRParser.processAST when commenting out constructor declaration line
Summary: NullPointerException @ ...javacore.parser.MDRParser.processAST when commentin...
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: 2005-12-15 02:52 UTC by brucechapman
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 brucechapman 2005-12-15 02:52:48 UTC
applied the comment out tool to the first line of constructor

//    Ecr(Kind k, String identifier, String codebase ) {
        this.kind=k;
        this.identifier=identifier;
        // this.codebase=codebase;
    }

got NPE


Log Session: Tuesday, December 13, 2005 9:33:18 AM NZDT
>System Info: 
  Product Version         = NetBeans IDE 5.0 Beta 2 (Build 200511141730)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor; Home  = 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05; 
Sun Microsystems Inc.; C:\Program Files\Java\jdk1.5.0_06\jre
  System Locale; Encoding = en_NZ (nb); Cp1252
  Home Dir.; Current Dir. = C:\Documents and Settings\bchapman; e:\Program 
Files\netbeans-5.0beta2
  Installation; User Dir. = E:\Program Files\netbeans-5.0beta2\nb5.0;E:\Program 
Files\netbeans-5.0beta2\ide6;E:\Program Files\netbeans-5.0beta2
\enterprise2;E:\Program Files\netbeans-5.0beta2\harness;E:\Program 
Files\netbeans-5.0beta2\platform6; C:\Documents and 
Settings\bchapman\.netbeans\5.0beta2
  Boot & Ext. Classpath   = C:\Program Files\Java\jdk1.5.0_06
\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;C:\Program 
Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_06
\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Program 
Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_06
\jre\classes;C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext\dnsns.jar;C:\Program 
Files\Java\jdk1.5.0_06\jre\lib\ext\localedata.jar;C:\Program 
Files\Java\jdk1.5.0_06\jre\lib\ext\sunjce_provider.jar;C:\Program 
Files\Java\jdk1.5.0_06\jre\lib\ext\sunpkcs11.jar
  Application Classpath   = E:\Program Files\netbeans-5.0beta2\platform6
\lib\boot.jar;E:\Program Files\netbeans-5.0beta2\platform6\lib\org-openide-
modules.jar;E:\Program Files\netbeans-5.0beta2\platform6\lib\org-openide-
util.jar;C:\Program Files\Java\jdk1.5.0_06\lib\dt.jar;C:\Program 
Files\Java\jdk1.5.0_06\lib\tools.jar
  Startup Classpath       = E:\Program Files\netbeans-5.0beta2\platform6
\core\core.jar;E:\Program Files\netbeans-5.0beta2\platform6\core\org-openide-
filesystems.jar;E:\Program Files\netbeans-5.0beta2\nb5.0\core\org-netbeans-
upgrader.jar;E:\Program Files\netbeans-5.0beta2\nb5.0
\core\locale\core_nb.jar;E:\Program Files\netbeans-5.0beta2\ide6\core\org-
netbeans-modules-utilities-cli.jar


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.updateFromFileObjec
t(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 Becicka 2005-12-20 08:26:45 UTC
I cannot reproduce it in latest dev build. It might be already probably fixed.
Can you check latest dev-build?
Comment 2 brucechapman 2005-12-20 21:23:13 UTC
Have retested and cannot reproduce on netbeans-5_0-daily-bin-200512192030-
windows-19_Dec_2005_2030.exe

I am not sure about how to close of the bug correctly. Can you do it.

thanks
Comment 3 aeriform 2006-01-11 22:16:38 UTC
Fixed as noted above.
Comment 4 Quality Engineering 2007-09-20 12:07:44 UTC
Reorganization of java component