Fixed crash

This commit is contained in:
Valentin Kipyatkov
2015-10-05 20:34:46 +03:00
parent 97d566105a
commit 06a0154b75
@@ -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