From e5f3715285dea4c790824b7edd3c58e5b2d58a1a Mon Sep 17 00:00:00 2001 From: Tim Freiheit Date: Fri, 15 Jan 2021 16:22:47 +0100 Subject: [PATCH] fix TypeCastException when unlinking google account (#1076) --- google/src/main/java/com/parse/google/ParseGoogleUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/src/main/java/com/parse/google/ParseGoogleUtils.kt b/google/src/main/java/com/parse/google/ParseGoogleUtils.kt index 0b53fe5f0..fde0bf3a6 100644 --- a/google/src/main/java/com/parse/google/ParseGoogleUtils.kt +++ b/google/src/main/java/com/parse/google/ParseGoogleUtils.kt @@ -225,10 +225,10 @@ object ParseGoogleUtils { error = ParseException(error) } if (callback is SaveCallback) { - callback.done(error as ParseException) + callback.done(error as? ParseException) } else if (callback is LogInCallback) { callback.done( - task.result as ParseUser, error as ParseException) + task.result as? ParseUser, error as? ParseException) } } finally { when {