Skip to content

Commit 4212948

Browse files
authored
Fix nil error & subsequent app crash (#393)
1 parent 7d525b0 commit 4212948

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/Plugin/Plugin.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public class GoogleAuth: CAPPlugin {
118118
@objc
119119
func signOut(_ call: CAPPluginCall) {
120120
DispatchQueue.main.async {
121-
self.googleSignIn.signOut();
121+
if self.googleSignIn != nil {
122+
self.googleSignIn.signOut();
123+
}
122124
}
123125
call.resolve();
124126
}

0 commit comments

Comments
 (0)