File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ protected void onMessage(Intent intent) {
5757
5858 @ Override
5959 protected void onRegistered (String newRegistrationId ) {
60- OneSignal .Log (OneSignal .LOG_LEVEL .INFO , "ADM registartion ID: " + newRegistrationId );
60+ OneSignal .Log (OneSignal .LOG_LEVEL .INFO , "ADM registration ID: " + newRegistrationId );
6161 PushRegistratorADM .fireCallback (newRegistrationId );
6262 }
6363
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ public void run() {
6363 }
6464
6565 public static void fireCallback (String id ) {
66+ if (registeredCallback == null )
67+ return ;
6668 callbackSuccessful = true ;
6769 registeredCallback .complete (id , 1 );
6870 }
You can’t perform that action at this time.
0 commit comments