Skip to content

Commit c262a7c

Browse files
Null exception setting email (#1168)
Added the return statement in shouldQueueTaskForInit when setting the Email
1 parent c9effff commit c262a7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,7 @@ public void run() {
12991299
setEmail(email, emailAuthHash, callback);
13001300
}
13011301
});
1302+
return;
13021303
}
13031304
// If applicable, check if the user provided privacy consent
13041305
if (shouldLogUserPrivacyConsentErrorMessageForMethodName(OSTaskController.SET_EMAIL))

0 commit comments

Comments
 (0)