Skip to content

Commit

Permalink
Fix crash when processing some obscure class files
Browse files Browse the repository at this point in the history
  • Loading branch information
komu committed May 28, 2024
1 parent b4c0af0 commit aa6748b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ internal object ClassMetadataReader {
}

override fun visitParameter(name: String?, access: Int) {
val nextParameter = method.parameters[parameterIndex++]
val nextParameter = method.parameters.getOrNull(parameterIndex++)

if (name != null)
if (name != null && nextParameter != null)
nextParameter.name = name
}

Expand Down

0 comments on commit aa6748b

Please sign in to comment.