Skip to content

Commit e5f3715

Browse files
authored
fix TypeCastException when unlinking google account (#1076)
1 parent a5cfa1f commit e5f3715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/src/main/java/com/parse/google/ParseGoogleUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ object ParseGoogleUtils {
225225
error = ParseException(error)
226226
}
227227
if (callback is SaveCallback) {
228-
callback.done(error as ParseException)
228+
callback.done(error as? ParseException)
229229
} else if (callback is LogInCallback) {
230230
callback.done(
231-
task.result as ParseUser, error as ParseException)
231+
task.result as? ParseUser, error as? ParseException)
232232
}
233233
} finally {
234234
when {

0 commit comments

Comments
 (0)