[jbosstools-commits] JBoss Tools SVN: r17646 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 18 03:57:39 EDT 2009
Author: vrubezhny
Date: 2009-09-18 03:57:39 -0400 (Fri, 18 Sep 2009)
New Revision: 17646
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
JBIDE-4911: NPE occurres while invoking the CA in an empty editor
Issue is fixed
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-09-18 00:00:41 UTC (rev 17645)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-09-18 07:57:39 UTC (rev 17646)
@@ -379,6 +379,7 @@
*/
@Override
protected String getMatchString(IStructuredDocumentRegion parent, ITextRegion aRegion, int offset) {
+ if (aRegion == null) return "";
String matchString = super.getMatchString(parent, aRegion, offset);
String regionType = aRegion.getType();
if(regionType == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE && matchString.startsWith("\"")) { //$NON-NLS-1$
More information about the jbosstools-commits
mailing list