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 51704

Summary: Code-complete on <jsp:directive.attribute> throws StringIndexOutOfBoundsException
Product: serverplugins Reporter: _ gtzabari <gtzabari>
Component: InfrastructureAssignee: Pavel Buzek <pbuzek>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2004-11-22 04:42:35 UTC
dev build 200411181900
JDK 1.5

I try to code-complete on:

<jsp:directive.attribute name="background"
required="true"/>

where my cursor is located on the "r" in
"required". The following exception is thrown:

Annotation: Exception occurred in Request Processor
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
	at java.lang.String.substring(String.java:1768)
	at
org.netbeans.modules.web.core.syntax.CompletionItem$Attribute.getHelp(CompletionItem.java:461)
	at
org.netbeans.modules.web.core.syntax.JspCompletionJavaDoc$JspDocParsingThread.run(JspCompletionJavaDoc.java:140)
	at org.openide.util.Task.run(Task.java:189)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
Comment 1 Marek Fukala 2004-11-22 08:54:31 UTC

*** This issue has been marked as a duplicate of 51626 ***