Skip to content

Commit

Permalink
fix: compareSignatureToMethod not matching correctly in case opcode…
Browse files Browse the repository at this point in the history
…s are null
  • Loading branch information
oSumAtrIX committed Jun 5, 2022
1 parent c267b12 commit cca12aa
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -77,11 +77,8 @@ internal class SignatureResolver(
}
}

return if (signature.opcodes == null) {
null
} else {
method.implementation?.instructions?.scanFor(signature.opcodes)!!
}
return if (signature.opcodes == null) PatternScanResult(0,0)
else method.implementation?.instructions?.scanFor(signature.opcodes)
}

private fun compareParameterTypes(signature: Array<String>, original: MutableList<out CharSequence>): Boolean {
Expand Down

0 comments on commit cca12aa

Please sign in to comment.