Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Minor: fix type mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
yanex committed Jul 9, 2015
1 parent d42de88 commit 3a3f613
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ abstract class AnkoIntention<TElement : JetElement>(
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
Expand Down

0 comments on commit 3a3f613

Please sign in to comment.