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

Summary: [70cat] StringIndexOutOfBoundsException: String index out of range: 0
Product: php Reporter: FTDeBUGgeR
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: idrozd, IgalR, jacek.wysocki, jonavogt, kalle.penders, mmirilovic, pjiricka, poloche, St.Ev, synergie-consulting, tcsizmadia, Vitex, webcreate, wrong.t
Priority: P1    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 173709
Attachments: stacktrace

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.