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 192630 - [70cat] StringIndexOutOfBoundsException: String index out of range: 0
Summary: [70cat] StringIndexOutOfBoundsException: String index out of range: 0
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 11:16 UTC by FTDeBUGgeR
Modified: 2011-01-17 13:24 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173709


Attachments
stacktrace (5.03 KB, text/plain)
2010-11-29 11:16 UTC, FTDeBUGgeR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FTDeBUGgeR 2010-11-29 11:16:39 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
GUEST: Used a code template with a parameter in an HTML file.

tcsizmadia: entered a variable in an editor window (editing a PHP-file).

GUEST: Autocompleting Zend Framework methods in a big php project (no Netbeans' Zend Project)

jonavogt: Acceptet Codecompletion

GUEST: modelos de codgio

synergie-consulting: Intelicence during writing "Database"




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
   at java.lang.String.charAt(String.java:686)
   at org.netbeans.modules.php.editor.indent.TokenFormatter$1.run(TokenFormatter.java:1223)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
   at org.netbeans.modules.php.editor.indent.TokenFormatter.reformat(TokenFormatter.java:346)
   at org.netbeans.modules.php.editor.indent.PHPFormatter.reformat(PHPFormatter.java:129)
   at org.netbeans.modules.csl.core.GsfReformatTask$1.run(GsfReformatTask.java:105)
Comment 1 FTDeBUGgeR 2010-11-29 11:16:42 UTC
Created attachment 103432 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-01-14 15:24:59 UTC
138 dups -> P1
Comment 3 Petr Pisl 2011-01-17 13:24:08 UTC
I expect that this is already fixed, because the reports are coming only from beta, do dev builds.