From d8e2c0a9f62431b03e47858a98560d19429bfb67 Mon Sep 17 00:00:00 2001 From: "Leon.yan" Date: Thu, 8 Feb 2024 09:47:39 +0900 Subject: [PATCH] Fix crash when fetch myInfo API --- .../src/main/java/com/mushare/plutosdk/Pluto+User.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+User.kt b/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+User.kt index 6c1fe63..8e94b7b 100644 --- a/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+User.kt +++ b/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+User.kt @@ -43,7 +43,7 @@ fun Pluto.myInfo( t: Throwable ) { t.printStackTrace() - error(PlutoError.badRequest) + error?.invoke(PlutoError.badRequest) } override fun onResponse(