Fix IndexOutOfBoundsException (EA-211554) in SerializationPluginDeclarationChecker
This commit is contained in:
+9
-1
@@ -164,7 +164,15 @@ open class SerializationPluginDeclarationChecker : DeclarationChecker {
|
|||||||
trace: BindingTrace,
|
trace: BindingTrace,
|
||||||
fallbackElement: PsiElement
|
fallbackElement: PsiElement
|
||||||
) {
|
) {
|
||||||
type.arguments.forEachIndexed { i, it -> checkType(module, it.type, element?.typeArgumentsAsTypes?.get(i), trace, fallbackElement) }
|
type.arguments.forEachIndexed { i, it ->
|
||||||
|
checkType(
|
||||||
|
module,
|
||||||
|
it.type,
|
||||||
|
element?.typeArgumentsAsTypes?.getOrNull(i),
|
||||||
|
trace,
|
||||||
|
fallbackElement
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun AbstractSerialGenerator.checkType(
|
private fun AbstractSerialGenerator.checkType(
|
||||||
|
|||||||
Reference in New Issue
Block a user