commit | 4a98044bcbd2a1ef7757a72e95ce6d9137bef406 | [log] [tgz] |
---|---|---|
author | nitind <nitind> | Tue Aug 10 11:22:23 2010 +0000 |
committer | nitind <nitind> | Tue Aug 10 11:22:23 2010 +0000 |
tree | fadced1eba3af92b140b0696433ca62253f7f361 | |
parent | d298c510a8d9aacbac9e09d116c6a1a0180e6daa [diff] |
[321529] NPE when opening any source editor if JSP plug-ins are not loaded
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java index 3d0285d..2ac7253 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java +++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
@@ -3520,7 +3520,7 @@ * @return */ private int calculatePriority(IContentType type, IContentType targetType, int priority) { - if (type == null) + if (type == null || targetType == null) return -1; if (type.getId().equals(targetType.getId())) return priority;