Restore check in BuiltInsReferenceResolver
Erroneously deleted in d988256831
This commit is contained in:
@@ -231,6 +231,10 @@ public class BuiltInsReferenceResolver extends AbstractProjectComponent {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public Collection<PsiElement> resolveBuiltInSymbol(@NotNull DeclarationDescriptor declarationDescriptor) {
|
public Collection<PsiElement> resolveBuiltInSymbol(@NotNull DeclarationDescriptor declarationDescriptor) {
|
||||||
|
if (bindingContext == null) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
DeclarationDescriptor descriptor = findCurrentDescriptor(declarationDescriptor.getOriginal());
|
DeclarationDescriptor descriptor = findCurrentDescriptor(declarationDescriptor.getOriginal());
|
||||||
if (descriptor != null) {
|
if (descriptor != null) {
|
||||||
return DescriptorToSourceUtils.descriptorToDeclarations(descriptor);
|
return DescriptorToSourceUtils.descriptorToDeclarations(descriptor);
|
||||||
|
|||||||
Reference in New Issue
Block a user