diff --git a/preview/intentions/src/org/jetbrains/anko/idea/intentions/AnkoIntention.kt b/preview/intentions/src/org/jetbrains/anko/idea/intentions/AnkoIntention.kt index 8600e825..3df3a3c9 100644 --- a/preview/intentions/src/org/jetbrains/anko/idea/intentions/AnkoIntention.kt +++ b/preview/intentions/src/org/jetbrains/anko/idea/intentions/AnkoIntention.kt @@ -133,7 +133,7 @@ abstract class AnkoIntention( val explicitlyImportedSymbols = newElement.newFqNames.flatMap { fqName -> resolutionFacade.resolveImportReference(jetFile, FqName("$ANKO_PACKAGE$fqName"), false) } - val symbolScope = getResolutionScope(containingDeclaration) + val symbolScope = getResolutionScope(containingDeclaration) ?: return val scope = ChainedScope(containingDeclaration, "SimplifyToastIntention resolution scope", ExplicitImportsScope(explicitlyImportedSymbols), symbolScope) var bindingContext = newExpression.analyzeInContext(scope) val functionDescriptor = newExpression.getResolvedCall(bindingContext)?.getResultingDescriptor() ?: return