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 246715 - StringIndexOutOfBoundsException: String index out of range: 4
Summary: StringIndexOutOfBoundsException: String index out of range: 4
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 06:59 UTC by Alexander Simon
Modified: 2014-09-02 02:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211455


Attachments
stacktrace (3.45 KB, text/plain)
2014-08-27 06:59 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-08-27 06:59:25 UTC
Build: NetBeans IDE 8.0.1 (Build 20140826-ace0cf6e7a3a)
VM: Java HotSpot(TM) Client VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: SunOS

User Comments:
alexvsimon: try to diff of url file




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
   at java.lang.String.substring(String.java:1907)
   at org.netbeans.modules.url.URLDataObject.findUrlInFileContent(URLDataObject.java:198)
   at org.netbeans.modules.url.URLDataObject.getURLString(URLDataObject.java:154)
   at org.netbeans.modules.url.URLDataObject.open(URLDataObject.java:242)
   at org.netbeans.modules.mercurial.ui.status.OpenInEditorAction.openByCookie(OpenInEditorAction.java:114)
   at org.netbeans.modules.mercurial.ui.status.OpenInEditorAction.openDataObjectByCookie(OpenInEditorAction.java:100)
Comment 1 Alexander Simon 2014-08-27 06:59:27 UTC
Created attachment 148918 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-08-31 11:04:42 UTC
http://hg.netbeans.org/core-main/rev/cf81f9a10cd0
It should work fine now.

Thank you for reporting.
Comment 3 Quality Engineering 2014-09-02 02:33:54 UTC
Integrated into 'main-silver', will be available in build *201409020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cf81f9a10cd0
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #246715: StringIndexOutOfBoundsException: String index out of range: 4