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 - NullPointerException at java.lang.String.rangeCheck
Summary: NullPointerException at java.lang.String.rangeCheck
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Alexandr Scherbatiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 13:01 UTC by Alexandr Scherbatiy
Modified: 2016-09-23 07:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226368


Attachments
stacktrace (5.39 KB, text/plain)
2016-09-22 13:01 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.