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 254486

Summary: StringIndexOutOfBoundsException: String index out of range: 0
Product: web Reporter: Michel Graciano <hmichel>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: hmichel, ppisl
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 214005
Attachments: stacktrace
stacktrace

Description Michel Graciano 2015-08-18 13:25:26 UTC
Build: NetBeans IDE Dev (Build 20150818-602910034ac6)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
GUEST: ???????  ???

GUEST: ??????

GUEST: No idea?

GUEST: ??????

hmichel: Editing a HTML file




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
   at java.lang.String.charAt(String.java:646)
   at org.netbeans.modules.html.angular.AngularJsEmbeddingProviderPlugin.processExpression(AngularJsEmbeddingProviderPlugin.java:665)
   at org.netbeans.modules.html.angular.AngularJsEmbeddingProviderPlugin.processToken(AngularJsEmbeddingProviderPlugin.java:200)
   at org.netbeans.modules.html.editor.embedding.JsEPPluginQuery$Session.processToken(JsEPPluginQuery.java:115)
   at org.netbeans.modules.html.editor.embedding.JsEmbeddingProvider.process(JsEmbeddingProvider.java:184)
   at org.netbeans.modules.html.editor.embedding.JsEmbeddingProvider.access$100(JsEmbeddingProvider.java:80)
Comment 1 Michel Graciano 2015-08-18 13:25:28 UTC
Created attachment 155427 [details]
stacktrace
Comment 2 Michel Graciano 2015-08-18 13:28:09 UTC
Created attachment 155428 [details]
stacktrace

Editing a HTML file with some unfinished AngularJS scripting:

data-ng-class="row resumo-emp ::Ctrl.property.getIconClass()">
Comment 3 Petr Pisl 2015-09-11 10:09:30 UTC
Fixed in web-main.
Comment 4 Quality Engineering 2015-09-12 03:05:19 UTC
Integrated into 'main-silver', will be available in build *201509120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/39619a04abcd
User: Petr Pisl <ppisl@netbeans.org>
Log: #254486 - StringIndexOutOfBoundsException: String index out of range: 0