mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
Fix accidental revert of ArraySerializer fix from CORDA-2050. (#5607)
This was originally part of a9d9b668
but has been lost somehow?!
This commit is contained in:
parent
62a5485107
commit
4dd51de5c1
@ -90,7 +90,9 @@ open class ArraySerializer(override val type: Type, factory: LocalSerializerFact
|
||||
context: SerializationContext
|
||||
): Any {
|
||||
if (obj is List<*>) {
|
||||
return obj.map { input.readObjectOrNull(it, schemas, elementType, context) }.toArrayOfType(elementType)
|
||||
return obj.map {
|
||||
input.readObjectOrNull(redescribe(it, elementType), schemas, elementType, context)
|
||||
}.toArrayOfType(elementType)
|
||||
} else throw AMQPNotSerializableException(type, "Expected a List but found $obj")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user