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.
Build: NetBeans IDE Dev (Build NetBeans-1250-on-20170325) VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13 OS: Linux User Comments: tboudreau: Seems to happen on many refactorings if you use generics heavily Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.source.pretty.WidthEstimator.widthQ(WidthEstimator.java:114) at org.netbeans.modules.java.source.pretty.WidthEstimator.width(WidthEstimator.java:101) at org.netbeans.modules.java.source.pretty.WidthEstimator.width(WidthEstimator.java:108) at org.netbeans.modules.java.source.pretty.WidthEstimator.width(WidthEstimator.java:95) at org.netbeans.modules.java.source.pretty.WidthEstimator.visitTypeCast(WidthEstimator.java:265) at com.sun.tools.javac.tree.JCTree$JCTypeCast.accept(JCTree.java:2018)
Created attachment 164659 [details] stacktrace
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/e67944d803e7
Integrated into 'main-silver', will be available in build *201708130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e67944d803e7 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #271002 - NullPointerException at org.netbeans.modules.java.source.pretty.WidthEstimator.widthQ - fixed.
*** Bug 270356 has been marked as a duplicate of this bug. ***