Add comment

perftest
Laurent 3 years ago
parent 323a3e3bbc
commit 1bd5876845
  1. 2
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt

@ -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")

Loading…
Cancel
Save