Author: vrubezhny
Date: 2011-11-18 09:42:36 -0500 (Fri, 18 Nov 2011)
New Revision: 36439
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
JBIDE-10090 NPE in VPE
NPE is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2011-11-18
13:44:57 UTC (rev 36438)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2011-11-18
14:42:36 UTC (rev 36439)
@@ -326,7 +326,7 @@
private ELContext createPageContext(IFile file, List<String> parents, String
defaultContextType) {
boolean isContextCachingAllowed = !EclipseUIUtil.isOpenInActiveEditor(file);
ELContext context = isContextCachingAllowed ? getSavedContext(file) : null;
- if (context == null) {
+ if (context == null && file != null) {
IContentType type = IDE.getContentType(file);
String typeId = (type == null ? null : type.getId());
Show replies by date