Author: akazakov
Date: 2009-06-29 11:21:04 -0400 (Mon, 29 Jun 2009)
New Revision: 16255
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29
15:20:14 UTC (rev 16254)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29
15:21:04 UTC (rev 16255)
@@ -692,8 +692,12 @@
}
int inValueOffset = getOffset() - startOffset;
- if (text.length() < inValueOffset) // probably, the attribute value ends before the
document position
+ if (text.length() < inValueOffset) { // probably, the attribute value ends before
the document position
return null;
+ }
+ if (inValueOffset<0) {
+ return null;
+ }
String matchString = text.substring(0, inValueOffset);