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 225086 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-19 09:17 UTC by mstarnacki
Modified: 2013-07-02 02:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 197768


Attachments
stacktrace (3.43 KB, text/plain)
2013-01-19 09:17 UTC, mstarnacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mstarnacki 2013-01-19 09:17:08 UTC
Build: NetBeans IDE 7.3 RC1 (Build 201301172100)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Linux

User Comments:
mstarnacki: In project properties HTML5Application I selected Run->Start File text field. I have filled out wit non existing file and then I clicked Browse button.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1911)
   at org.netbeans.modules.web.clientproject.ui.BrowseFolders.expandSelection(BrowseFolders.java:141)
   at org.netbeans.modules.web.clientproject.ui.BrowseFolders.<init>(BrowseFolders.java:117)
   at org.netbeans.modules.web.clientproject.ui.BrowseFolders.showDialog(BrowseFolders.java:225)
   at org.netbeans.modules.web.clientproject.ui.BrowseFolders.showDialog(BrowseFolders.java:260)
   at org.netbeans.modules.web.clientproject.ui.customizer.RunPanel.jBrowseButtonActionPerformed(RunPanel.java:391)
Comment 1 mstarnacki 2013-01-19 09:17:10 UTC
Created attachment 130387 [details]
stacktrace
Comment 2 Tomas Mysik 2013-07-01 11:47:25 UTC
Fixed.

Thanks.

http://hg.netbeans.org/web-main/rev/8bd98d80bb15
Comment 3 Quality Engineering 2013-07-02 02:16:39 UTC
Integrated into 'main-silver', will be available in build *201307012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8bd98d80bb15
User: Tomas Mysik <tmysik@netbeans.org>
Log: #225086 - StringIndexOutOfBoundsException: String index out of range: -1