(no message)

This commit is contained in:
Alexey Kudravtsev
2005-01-18 14:35:55 +03:00
parent aad46e532b
commit 3bf9d9bc32

View File

@@ -580,7 +580,7 @@ public class CommentByLineCommentHandler implements CodeInsightActionHandler, Li
final PsiElement elementAt = context.getFile().findElementAt(offset1);
final XmlTag tag = PsiTreeUtil.getParentOfType(elementAt, XmlTag.class, false);
if (tag.getName().equals("jsp:scriplet") || tag.getName().equals("jsp:declaration")) {
if (tag == null || tag.getName().equals("jsp:scriplet") || tag.getName().equals("jsp:declaration")) {
myJavaComment = true;
}
}