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 207028 - NullPointerException at com.sun.tools.javac.comp.Flow.visitTry
Summary: NullPointerException at com.sun.tools.javac.comp.Flow.visitTry
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-07 18:32 UTC by rwilson352
Modified: 2012-06-27 09:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184234


Attachments
stacktrace (2.54 KB, text/plain)
2012-01-07 18:32 UTC, rwilson352
Details
Requested dump file (8.37 KB, application/octet-stream)
2012-01-28 19:39 UTC, _ gtzabari
Details
stacktrace (2.59 KB, text/plain)
2012-05-23 11:13 UTC, williambacchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rwilson352 2012-01-07 18:32:22 UTC
This bug was originally marked as duplicate of bug 162245, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows 7

User Comments:
rwilson352: Ok I'm confused.

I clicked the "unreported exception" button in the bottom right (red circle with minus sign) and it told me there was an error parsing a file.

Then when it opened, it said there was a NullPointerException.

It is unclear to me whether the parsing error and the null pointer exception are the same thing, or if it threw the NPE when I clicked the "link" to send the report.

So, you guys can sort it out. :)




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Flow.visitTry(Flow.java:1146)
   at com.sun.tools.javac.tree.JCTree$JCTry.accept(JCTree.java:1049)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:539)
   at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:547)
   at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:843)
Comment 1 rwilson352 2012-01-07 18:32:24 UTC
Created attachment 114706 [details]
stacktrace
Comment 2 _ gtzabari 2012-01-28 19:39:17 UTC
Created attachment 115347 [details]
Requested dump file
Comment 3 _ gtzabari 2012-01-28 20:30:07 UTC
Increasing the priority of this bug because it prevents users from stepping into a method in a debug session.
Comment 4 Dusan Balek 2012-04-04 13:27:30 UTC
Hard to fix without a reproducible test case. Are you able to reproduce the
issue? If so, could you please create a simple test case and attach it to the
issue? Thanks.
Comment 5 williambacchi 2012-05-23 11:13:38 UTC
Created attachment 119770 [details]
stacktrace
Comment 7 Jiri Prox 2012-06-20 11:46:38 UTC
verified in trunk
Comment 8 Jan Lahoda 2012-06-20 12:35:58 UTC
Seems acceptable to me.
Comment 9 Jan Lahoda 2012-06-21 09:27:07 UTC
Merged to release72:
http://hg.netbeans.org/releases/rev/fe85e2a03678
Comment 10 Jiri Prox 2012-06-27 09:59:48 UTC
verified in 7.2