提交 06a0154b 编写于 作者: V Valentin Kipyatkov

Fixed crash

上级 97d56610
......@@ -141,8 +141,11 @@ class KotlinFunctionParameterInfoHandler : ParameterInfoHandlerWithTabActionSupp
val callElement = argumentList.parent as? JetCallElement ?: return false
val call = callElement.getCall(bindingContext) ?: return false
val currentParameterIndex = context.currentParameterIndex
if (currentParameterIndex < 0) return false // by some strange reason we are invoked with currentParameterIndex == -1 during initialization
val (argumentToParameter, highlightParameterIndex, isGrey) = matchCallWithSignature(
call, itemToShow, context.currentParameterIndex, bindingContext, argumentList.getResolutionFacade())
call, itemToShow, currentParameterIndex, bindingContext, argumentList.getResolutionFacade())
val usedParameterIndices = HashSet<Int>()
var namedMode = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册