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 268156

Summary: NullPointerException at java.lang.String.rangeCheck
Product: platform Reporter: Alexandr Scherbatiy <sunflower>
Component: Output WindowAssignee: Alexandr Scherbatiy <sunflower>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226368
Attachments: stacktrace

Description Alexandr Scherbatiy 2016-09-22 13:01:21 UTC
Build: NetBeans IDE Dev (Build 20160920-9f06e8851406)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-internal+0-2016-09-22-143217.alexsch.jdk9-hidpi, Java(TM) SE Runtime Environment, 9-internal+0-2016-09-22-143217.alexsch.jdk9-hidpi
OS: Windows 8.1

User Comments:
sunflower: Build NetBeans from sources: http://hg.netbeans.org/jet-main
Build JDK 9 from sources: http://hg.openjdk.java.net/jdk9/client/

Run the build NetBeans using the built JDK 9.
Create a Java project.
Build the project.

The exception pops up.




Stacktrace: 
java.lang.NullPointerException
   at java.lang.String.rangeCheck(String.java:278)
   at java.lang.String.<init>(String.java:274)
   at sun.swing.SwingUtilities2.getFontCharsWidth(SwingUtilities2.java:842)
   at javax.swing.text.Utilities.getTabbedTextWidth(Utilities.java:360)
   at javax.swing.text.Utilities.getTabbedTextWidth(Utilities.java:282)
   at javax.swing.text.Utilities.getTabbedTextWidth(Utilities.java:247)
Comment 1 Alexandr Scherbatiy 2016-09-22 13:01:22 UTC
Created attachment 162176 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2016-09-23 07:09:24 UTC
I believe it is problem with the code in the built JDK.