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 268482 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 11:22 UTC by fpinero
Modified: 2017-05-17 01:41 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226491


Attachments
stacktrace (3.46 KB, text/plain)
2016-10-12 11:22 UTC, fpinero
Details
stacktrace (3.46 KB, text/plain)
2016-10-27 18:32 UTC, theshadow27
Details
stacktrace (3.46 KB, text/plain)
2016-11-04 02:46 UTC, theshadow27
Details
stacktrace (3.46 KB, text/plain)
2016-11-11 20:43 UTC, theshadow27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fpinero 2016-10-12 11:22:46 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
fpinero: first launch after upgrade to this version

GUEST: Opening a project

GUEST: just opening netbeans 8.2 after installing, settings from 8.1 (maven projects) were imported

gobron: StringIndexOutOfBoundsException: String index out of range: -8

wissenstein: I installed NetBeans 8.2, started it and chose "Import previous settings". After the IDE started, it indicated that StringIndexOfBoundException occured.

GUEST: Just opened NetBeans




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1948)
   at org.netbeans.modules.java.source.usages.BinaryName.getSimpleName(BinaryName.java:106)
   at org.netbeans.modules.java.source.usages.DocumentUtil.createDocument(DocumentUtil.java:293)
   at org.netbeans.modules.java.source.usages.DocumentUtil.access$700(DocumentUtil.java:93)
   at org.netbeans.modules.java.source.usages.DocumentUtil$DocumentConvertor.convert(DocumentUtil.java:630)
   at org.netbeans.modules.java.source.usages.DocumentUtil$DocumentConvertor.convert(DocumentUtil.java:620)
Comment 1 fpinero 2016-10-12 11:22:49 UTC
Created attachment 162466 [details]
stacktrace
Comment 2 theshadow27 2016-10-27 18:32:41 UTC
Created attachment 162664 [details]
stacktrace

Starting ide for the first time after importing settings from 8.1
Comment 3 theshadow27 2016-11-04 02:46:27 UTC
Created attachment 162766 [details]
stacktrace

Reproducable by killing cache
Comment 4 theshadow27 2016-11-11 20:43:28 UTC
Created attachment 162878 [details]
stacktrace

Launched on windows for the first time after installing
Comment 5 Tomas Zezula 2017-05-15 11:13:26 UTC
Fixed jet-main 979415a09faa
Comment 6 Quality Engineering 2017-05-17 01:41:56 UTC
Integrated into 'main-silver', will be available in build *201705170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/979415a09faa
User: Tomas Zezula <tzezula@netbeans.org>
Log: #268482:StringIndexOutOfBoundsException: String index out of range: -1