Fix crashes due to Realm not being up to date

filterfix
Laurent 5 years ago
parent a1887e4c8f
commit 7768ddeda4
  1. 2
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt

@ -65,6 +65,8 @@ class ReplayExportService : Service() {
val c = GlobalScope.async {
val realm = Realm.getDefaultInstance()
realm.refresh()
val handHistory = realm.findById<HandHistory>(handHistoryId) ?: throw PAIllegalStateException("HandHistory not found, id: $handHistoryId")
val context = this@ReplayExportService

Loading…
Cancel
Save