Index: src/org/jboss/tools/jst/web/kb/PageContextFactory.java =================================================================== --- src/org/jboss/tools/jst/web/kb/PageContextFactory.java (revision 20642) +++ src/org/jboss/tools/jst/web/kb/PageContextFactory.java (working copy) @@ -503,6 +503,8 @@ private void fillElReferencesForNode(IDOMNode node, XmlContextImpl context) { if(Node.ELEMENT_NODE == node.getNodeType() || Node.TEXT_NODE == node.getNodeType()) { IStructuredDocumentRegion regionNode = node.getFirstStructuredDocumentRegion(); + if (regionNode == null) + return; ITextRegionList regions = regionNode.getRegions(); for(int i=0; i