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 271002 - NullPointerException at org.netbeans.modules.java.source.pretty.WidthEstimator.widthQ
Summary: NullPointerException at org.netbeans.modules.java.source.pretty.WidthEstimato...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 270356 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-29 21:46 UTC by _ tboudreau
Modified: 2017-08-25 14:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229573


Attachments
stacktrace (7.41 KB, text/plain)
2017-06-29 21:46 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2017-06-29 21:46:49 UTC
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)
Comment 1 _ tboudreau 2017-06-29 21:46:50 UTC
Created attachment 164659 [details]
stacktrace
Comment 2 Dusan Balek 2017-08-11 09:44:29 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/e67944d803e7
Comment 3 Quality Engineering 2017-08-13 01:49:27 UTC
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.
Comment 4 Dusan Balek 2017-08-25 14:53:16 UTC
*** Bug 270356 has been marked as a duplicate of this bug. ***