Commit d0259c1
committed
android: lazily init app in localAPI Request to fix cold-start crash
A localAPI request issued from a cold-started process (e.g. UseExitNodeWorker,
kicked off by IPNReceiver) reads Request's lateinit `app` before the backend has
been initialized, crashing the process with UninitializedPropertyAccessException.
Resolve the app lazily via App.get() in execute(), matching the lazy init that
Client already uses.1 parent 76b307f commit d0259c1
1 file changed
Lines changed: 13 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
309 | 321 | | |
310 | 322 | | |
311 | 323 | | |
312 | 324 | | |
313 | 325 | | |
| 326 | + | |
314 | 327 | | |
315 | 328 | | |
316 | 329 | | |
| |||
0 commit comments