Fix crash when no ER migration needed
This commit is contained in:
parent
2bc0f6c089
commit
bfe6207a63
@ -31,6 +31,9 @@ class MigrateEAtoEROperation {
|
||||
sessionFilesDir.mkdir()
|
||||
// perform a migration?
|
||||
val extractMigrationData = ExtractMigrationDataUseCase()
|
||||
val hasExitingData = extractMigrationData.hasExistingData(cryptoRealm)
|
||||
if (!hasExitingData) return sessionFilesDir
|
||||
|
||||
try {
|
||||
val progressListener = object : ProgressListener {
|
||||
override fun onProgress(progress: Int, total: Int) {
|
||||
|
Loading…
Reference in New Issue
Block a user