Fix class cast exception in KotlinFunctionParameterInfoHandler (EA-91186)
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ abstract class KotlinParameterInfoWithCallHandlerBase<TArgumentList : KtElement,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun findCall(argumentList: TArgumentList, bindingContext: BindingContext): Call? {
|
private fun findCall(argumentList: TArgumentList, bindingContext: BindingContext): Call? {
|
||||||
return (argumentList.parent as KtElement).getCall(bindingContext)
|
return (argumentList.parent as? KtElement)?.getCall(bindingContext)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getActualParameterDelimiterType() = KtTokens.COMMA
|
override fun getActualParameterDelimiterType() = KtTokens.COMMA
|
||||||
|
|||||||
Reference in New Issue
Block a user