Skip to content

Commit

Permalink
fix: converter failure when starting the cloud for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickbaier committed Oct 6, 2024
1 parent 99b79a1 commit 85f4c8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Converter_2_7_To_2_8 : IVersionConverter {
}

private fun changeProxyGroupServiceVersion(from: String, to: String) {
val groupFiles = File(DirectoryPaths.paths.proxyGroupsPath).listFiles()!!
.filter { JsonLib.fromJsonString(it.readText()).getString("serviceVersion") == from }
val groupFiles = File(DirectoryPaths.paths.proxyGroupsPath).listFiles()
?.filter { JsonLib.fromJsonString(it.readText()).getString("serviceVersion") == from } ?: return

groupFiles.forEach {
val jsonLib = JsonLib.fromJsonString(it.readText())
Expand Down

0 comments on commit 85f4c8d

Please sign in to comment.