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 212871 - StringIndexOutOfBoundsException: String index out of range: 21
Summary: StringIndexOutOfBoundsException: String index out of range: 21
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 06:33 UTC by mrpc
Modified: 2012-05-24 05:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187587


Attachments
stacktrace (2.18 KB, text/plain)
2012-05-23 06:33 UTC, mrpc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpc 2012-05-23 06:33:39 UTC
Build: NetBeans IDE Dev (Build 201205200400)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-415, Java(TM) SE Runtime Environment, 1.6.0_31-b04-415-11M3635
OS: Mac OS X

User Comments:
mrpc: typing...




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 21
   at java.lang.String.charAt(String.java:686)
   at org.netbeans.modules.php.editor.PHPCodeCompletion.getPrefix(PHPCodeCompletion.java:1097)
   at org.netbeans.modules.php.editor.PHPCodeCompletion.complete(PHPCodeCompletion.java:250)
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:604)
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:591)
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.access$400(GsfCompletionProvider.java:247)
Comment 1 mrpc 2012-05-23 06:33:45 UTC
Created attachment 119755 [details]
stacktrace
Comment 2 Ondrej Brejla 2012-05-23 07:13:53 UTC
Fixed in web-main #5781f567a0ad

(+ assert added, because I can't reproduce that...it's strange behavior)
Comment 3 Quality Engineering 2012-05-24 05:32:03 UTC
Integrated into 'main-golden', will be available in build *201205240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5781f567a0ad
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #212871 - StringIndexOutOfBoundsException: String index out of range: 21