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 242671 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 17:43 UTC by Exceptions Reporter
Modified: 2014-04-24 02:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208224


Attachments
stacktrace (7.24 KB, text/plain)
2014-03-07 17:43 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-03-07 17:43:15 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 8

User Comments:
GUEST: I was customizing the GNU code formatting style for C++, and attempted to duplicate it to a new style.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1911)
   at org.netbeans.modules.cnd.editor.options.ManageStylesPanel.nextId(ManageStylesPanel.java:255)
   at org.netbeans.modules.cnd.editor.options.ManageStylesPanel.duplicateButtonActionPerformed(ManageStylesPanel.java:211)
   at org.netbeans.modules.cnd.editor.options.ManageStylesPanel.access$300(ManageStylesPanel.java:70)
   at org.netbeans.modules.cnd.editor.options.ManageStylesPanel$2.actionPerformed(ManageStylesPanel.java:163)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
Comment 1 Exceptions Reporter 2014-03-07 17:43:17 UTC
Created attachment 145848 [details]
stacktrace
Comment 2 Alexander Simon 2014-04-14 09:15:44 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/bbe834c6f9fd
Comment 3 Quality Engineering 2014-04-18 02:40:21 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bbe834c6f9fd
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242671 StringIndexOutOfBoundsException: String index out of range: -1
Comment 4 Quality Engineering 2014-04-24 02:09:29 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/0423bcbb543f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242671 StringIndexOutOfBoundsException: String index out of range: -1
(transplanted from bbe834c6f9fdfcd9682f9bb0d1245761045246c0)