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 - NPE while trying to 'surround with try catch' a return statement
Summary: NPE while trying to 'surround with try catch' a return statement
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 09:40 UTC by Max Sauer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (1.72 KB, text/plain)
2005-08-09 09:41 UTC, Max Sauer
Details
test project (6.23 KB, application/x-gzip)
2005-08-09 09:42 UTC, Max Sauer
Details

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