Commit 27347f1
committed
Fixed possible null error with SyncService
* Added synchronized to initUserState to make sure this class doesn't become partially initialized that could create null errors.
- If SyncService.onCreate was started just before OneSignal init was called then the initUserState method might have been run on multiple threads.
* Removed dead code - method updateIdentifier.1 parent 36dd357 commit 27347f1
File tree
1 file changed
+6
-12
lines changed- OneSignalSDK/onesignal/src/main/java/com/onesignal
1 file changed
+6
-12
lines changedLines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
474 | 476 | | |
475 | | - | |
476 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
477 | 480 | | |
478 | 481 | | |
479 | 482 | | |
| |||
643 | 646 | | |
644 | 647 | | |
645 | 648 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | 649 | | |
656 | 650 | | |
657 | 651 | | |
| |||
0 commit comments