Here is the code running when it happens: ```fun m...
# rx
b
Here is the code running when it happens:
Copy code
fun makeCoins(results: JsonArray, convert: String?): MutableList<Coin> {
        val copy = results
        val coins: MutableList<Coin> = mutableListOf()
        if (copy.size() != 0)
            copy.forEachIndexed { index, jsonElement ->
                val coin = jsonElement.asJsonObject.toCoin(convert)
                coin?.let { coins.add(coin) }
            }

        return coins
    }
it crashes at the convert saying
Object has been collected Cannot evaluate com.google.gson.JsonArray.toString()