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 189667 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 05:20 UTC by Filip Zamboj
Modified: 2011-07-09 13:54 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170411


Attachments
stacktrace (1.46 KB, text/plain)
2010-08-19 05:20 UTC, Filip Zamboj
Details
stacktrace (1.46 KB, text/plain)
2010-10-17 17:08 UTC, Exceptions Reporter
Details
stacktrace (1.46 KB, text/plain)
2011-01-05 18:55 UTC, schkovich
Details
stacktrace (1.46 KB, text/plain)
2011-03-31 22:04 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2010-08-19 05:20:04 UTC
Build: NetBeans IDE Dev (Build 201008180001)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
fzamboj: typo while writing php code => syntax error. when trying to go back I got exception.

buzzword: Pressing Esc to close autocomplete popup.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1937)
   at java.lang.String.subSequence(String.java:1972)
   at org.netbeans.modules.php.editor.FSCompletion$1$1.run(FSCompletion.java:141)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:138)
   at org.netbeans.modules.parsing.impl.TaskProcessor$1.call(TaskProcessor.java:200)
Comment 1 Filip Zamboj 2010-08-19 05:20:10 UTC
Created attachment 101512 [details]
stacktrace
Comment 2 Filip Zamboj 2010-09-15 12:33:01 UTC
batch reassigning
Comment 3 Exceptions Reporter 2010-10-17 17:08:00 UTC
Created attachment 102440 [details]
stacktrace
Comment 4 schkovich 2011-01-05 18:55:34 UTC
Created attachment 104744 [details]
stacktrace

Overtiping include with require
Comment 5 Exceptions Reporter 2011-01-05 18:55:43 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=170411
Comment 6 schkovich 2011-03-31 22:04:50 UTC
Created attachment 107415 [details]
stacktrace

Over-typing include statement on the top of the php file
Comment 7 Petr Pisl 2011-07-08 10:24:23 UTC
Fixed in the web-main.
Comment 8 Quality Engineering 2011-07-09 13:54:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/f99e82c86c13
User: Petr Pisl <ppisl@netbeans.org>
Log: #189667 - StringIndexOutOfBoundsException: String index out of range: -1