|
|
|
@ -297,7 +297,7 @@ class ReplayExportService : Service() { |
|
|
|
CoroutineScope(Dispatchers.Default).launch { |
|
|
|
CoroutineScope(Dispatchers.Default).launch { |
|
|
|
|
|
|
|
|
|
|
|
val realm = Realm.getDefaultInstance() |
|
|
|
val realm = Realm.getDefaultInstance() |
|
|
|
realm.refresh() |
|
|
|
realm.refresh() // Fixes crash right below |
|
|
|
|
|
|
|
|
|
|
|
val handHistory = realm.findById<HandHistory>(handHistoryId) |
|
|
|
val handHistory = realm.findById<HandHistory>(handHistoryId) |
|
|
|
?: throw PAIllegalStateException("HandHistory not found, id: $handHistoryId") |
|
|
|
?: throw PAIllegalStateException("HandHistory not found, id: $handHistoryId") |
|
|
|
|