mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed NPE
This commit is contained in:
@@ -371,7 +371,7 @@ public class TypedHandler implements TypedActionHandler {
|
||||
PsiElement elementAt = file.findElementAt(offset-1);
|
||||
|
||||
// TODO: handle it with insertAfterRParen(...)
|
||||
if (!JspxCompletionData.isJavaContext(elementAt)) {
|
||||
if (elementAt!=null && !JspxCompletionData.isJavaContext(elementAt)) {
|
||||
while(!elementAt.getText().startsWith("${")) {
|
||||
elementAt = elementAt.getPrevSibling();
|
||||
if (elementAt==null) break;
|
||||
|
||||
Reference in New Issue
Block a user