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 256517 - NullPointerException at java.lang.String.contentEquals
Summary: NullPointerException at java.lang.String.contentEquals
Status: RESOLVED DUPLICATE of bug 257245
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 15:10 UTC by dusty
Modified: 2016-05-20 15:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221100


Attachments
stacktrace (2.18 KB, text/plain)
2015-11-11 15:10 UTC, dusty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dusty 2015-11-11 15:10:40 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Linux

User Comments:
Dusty: Unable to reformat file




Stacktrace: 
java.lang.NullPointerException
   at java.lang.String.contentEquals(String.java:1066)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.blankLines(Reformatter.java:3532)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:825)
   at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:406)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:725)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
Comment 1 dusty 2015-11-11 15:10:43 UTC
Created attachment 157276 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-12-12 11:22:19 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=221100
Comment 3 dusty 2015-12-12 12:18:43 UTC
This bug is very annoying, I'm unable to reformat my source file: is there a workaround?
Comment 4 Dusan Balek 2016-05-20 15:36:17 UTC
Already fixed in current dev build.

*** This bug has been marked as a duplicate of bug 257245 ***