Commit f9d911a
committed
Harden JwtTokenStore against corrupted SharedPreferences data
Wrap JSONObject parsing in ensureLoaded() with try-catch so that
corrupted persisted data (e.g. from a process kill mid-write) does
not permanently break JWT lookups and stall the operation queue.
Made-with: Cursor1 parent 4cb1242 commit f9d911a
File tree
1 file changed
+8
-3
lines changed- OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/identity
1 file changed
+8
-3
lines changedLines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
0 commit comments