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 237199 - StringIndexOutOfBoundsException: String index out of range: 0
Summary: StringIndexOutOfBoundsException: String index out of range: 0
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 12:52 UTC by Ralph Ruijs
Modified: 2016-07-07 07:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204631


Attachments
stacktrace (6.71 KB, text/plain)
2013-10-16 12:52 UTC, Ralph Ruijs
Details
stacktrace (7.32 KB, text/plain)
2013-10-21 19:11 UTC, Jesse Glick
Details
stacktrace (3.92 KB, text/plain)
2013-10-21 19:50 UTC, Jesse Glick
Details
stacktrace (5.04 KB, text/plain)
2013-10-22 15:53 UTC, Jesse Glick
Details
stacktrace (3.92 KB, text/plain)
2013-11-02 07:56 UTC, Exceptions Reporter
Details
stacktrace (4.30 KB, text/plain)
2013-11-12 10:48 UTC, Ondrej Vrabec
Details
stacktrace (4.30 KB, text/plain)
2013-11-12 14:21 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2013-10-16 12:52:38 UTC
Build: NetBeans IDE Dev (Build 20131016-9d84b87bf3ee)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b51, Java(TM) SE Runtime Environment, 1.8.0-ea-b109
OS: Windows 8

User Comments:
ralphbenjamin: Opened diff for mercurial changes




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
   at java.lang.String.charAt(String.java:651)
   at org.netbeans.modules.javadoc.highlighting.Highlighting.isWhiteSpace(Highlighting.java:182)
   at org.netbeans.modules.javadoc.highlighting.Highlighting.findFirstSentence(Highlighting.java:157)
   at org.netbeans.modules.javadoc.highlighting.Highlighting.access$000(Highlighting.java:73)
   at org.netbeans.modules.javadoc.highlighting.Highlighting$HSImpl.moveNext(Highlighting.java:235)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:443)
Comment 1 Ralph Ruijs 2013-10-16 12:52:40 UTC
Created attachment 141153 [details]
stacktrace
Comment 2 Jesse Glick 2013-10-21 19:11:23 UTC
Created attachment 141371 [details]
stacktrace

Routine Git diff, broken.
Comment 3 Jesse Glick 2013-10-21 19:50:23 UTC
Created attachment 141372 [details]
stacktrace

Was just editing and suddenly lost all coloration in a Java source. Other syntax highlighting (bold, italic) remains.
Comment 4 Exceptions Reporter 2013-10-21 19:50:26 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204631
Comment 5 Jesse Glick 2013-10-22 15:53:35 UTC
Created attachment 141419 [details]
stacktrace

Editor seems totally broken.
Comment 6 Exceptions Reporter 2013-11-02 07:56:11 UTC
Created attachment 141799 [details]
stacktrace

Started NB, opened a source file and started to edit the value for the member [public static final String MAIN_APPLICATION_VERSION_STRING = "Previous Application Name";
Comment 7 Ondrej Vrabec 2013-11-12 10:48:19 UTC
Created attachment 142085 [details]
stacktrace

scrolling through a java file
Comment 8 Ondrej Vrabec 2013-11-12 14:21:23 UTC
Created attachment 142098 [details]
stacktrace

still broken
Comment 9 Exceptions Reporter 2013-11-12 14:21:27 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204631
Comment 10 Ralph Ruijs 2013-11-12 14:38:44 UTC
Token.text() return an empty CharSequence which should not happen.

From javadoc:
@return non-null, non-empty text of this token.
Comment 11 Martin Balin 2016-07-07 07:16:50 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss