[109953] NPE's during JSP reconcile/validation
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/parser/ContextRegionContainer.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/parser/ContextRegionContainer.java
index ce56df9..2cdc7e7 100644
--- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/parser/ContextRegionContainer.java
+++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/parser/ContextRegionContainer.java
@@ -190,6 +190,13 @@
 	}
 
 	public int getStartOffset(ITextRegion containedRegion) {
+		// it is an error to pass null to this method
+		// ISSUE: need better "spec" on error behavior: 
+		// for now will return zero as this will roughly 
+		// work for some cases (and avoid NPE).
+		if (containedRegion == null) {
+			return getStartOffset();
+		}
 		return getStartOffset() + containedRegion.getStart();
 	}