IDEA-144278 IAE at com.intellij.psi.impl.search.PsiSearchHelperImpl.processElementsWithWord

This commit is contained in:
peter
2015-08-25 13:11:09 +02:00
parent 4f4a7d7a71
commit bf3bbf9746
@@ -16,6 +16,7 @@
package com.intellij.psi.impl.search;
import com.intellij.openapi.application.QueryExecutorBase;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.*;
import com.intellij.psi.search.*;
import com.intellij.psi.search.searches.ReferencesSearch;
@@ -36,7 +37,7 @@ public class VariableInIncompleteCodeSearcher extends QueryExecutorBase<PsiRefer
if (!refElement.isValid() || !(refElement instanceof PsiVariable)) return;
final String name = ((PsiVariable)refElement).getName();
if (name == null) return;
if (StringUtil.isEmptyOrSpaces(name)) return;
SearchScope scope = p.getEffectiveSearchScope();
if (!(scope instanceof LocalSearchScope)) {