Skip to content

Commit

Permalink
fix TypeCastException when unlinking google account (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfreiheit authored Jan 15, 2021
1 parent a5cfa1f commit e5f3715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/src/main/java/com/parse/google/ParseGoogleUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5f3715

Please sign in to comment.