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 271684 - NullPointerException at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitForLoop
Summary: NullPointerException at org.netbeans.modules.java.source.save.Reformatter$Pre...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-23 06:27 UTC by _ tboudreau
Modified: 2017-11-13 13:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 230580


Attachments
stacktrace (6.81 KB, text/plain)
2017-10-23 06:27 UTC, _ tboudreau
Details
stacktrace (6.81 KB, text/plain)
2017-10-29 05:15 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2017-10-23 06:27:15 UTC
Build: NetBeans IDE Dev (Build 20171012-8fbff2d899d9)
VM: OpenJDK 64-Bit Server VM, 9+181, OpenJDK Runtime Environment, 9+181
OS: Linux

User Comments:
GUEST: err

tboudreau: Editing a for(;;) loop




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitForLoop(Reformatter.java:2523)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitForLoop(Reformatter.java:406)
   at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:1138)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:591)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:1771)
Comment 1 _ tboudreau 2017-10-23 06:27:18 UTC
Created attachment 165337 [details]
stacktrace
Comment 2 _ tboudreau 2017-10-29 05:15:21 UTC
Created attachment 165364 [details]
stacktrace

Formatting code
Comment 3 Exceptions Reporter 2017-11-13 13:16:21 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=230580