- (void)restorePreviousSignInWithCompletion:(nullable void (^)(GIDGoogleUser *_Nullable user,
NSError *_Nullable error))completion {
[self signInWithOptions:[GIDSignInInternalOptions silentOptionsWithCompletion:
^(GIDSignInResult *signInResult, NSError *error) {
if (signInResult) {
completion(signInResult.user, nil);
} else {
completion(nil, error);
}
}]];
}
The method is defined with Nullable completion parameter, however it is not checked at execution, therefore it crashes.