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 61960

Summary: NPE while trying to 'surround with try catch' a return statement
Product: java Reporter: Max Sauer <msauer>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: exception stack trace
test project

Description Max Sauer 2005-08-09 09:40:17 UTC
In attached test project, surround with try-catch invoked on "return a[i];" in
Main.java produces following NPE:

java.lang.NullPointerException
	at
org.netbeans.modules.javacore.ExclusiveMutex.addBFeatureToInitQueue(ExclusiveMutex.java:469)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.CallableFeatureImpl.initChildren(CallableFeatureImpl.java:164)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:139)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.TransientElement.getASTree(TransientElement.java:65)
...

[200508081800, JDK 1.5.0_05 fcs b03, solaris 10/sparc]
Comment 1 Max Sauer 2005-08-09 09:41:19 UTC
Created attachment 23591 [details]
exception stack trace
Comment 2 Max Sauer 2005-08-09 09:42:54 UTC
Created attachment 23592 [details]
test project
Comment 3 Jan Becicka 2005-08-25 09:41:25 UTC
I cannot reproduce it after recent fixes.
Comment 4 Jan Becicka 2005-08-25 09:42:47 UTC
Oops - wrong issue, sorry.
Comment 5 Pavel Flaska 2005-09-21 16:56:43 UTC
I was unable to reproduce it in dev build.
Comment 6 Pavel Flaska 2005-09-21 16:57:33 UTC
Reopen, if you are able to reproduce.
Comment 7 Max Sauer 2005-09-23 10:38:14 UTC
Verified WORKSFORME, in 200509221800, I wasn't able to reproduce (it was
properly surrounded by try -- finally). The indentation could be better though.
Comment 8 Quality Engineering 2007-09-20 10:55:45 UTC
Reorganization of java component