Skip to content

Commit

Permalink
add check for null versionName
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jun 23, 2024
1 parent 291237d commit fa7a8d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object GamePackageUtils {

fun getGameVersionString(packageManager: PackageManager): String {
val game = packageManager.getPackageInfo(Constants.PACKAGE_NAME, 0)
return game.versionName
return game.versionName ?: "0.000"
}

private val gameVersionMap = mapOf(
Expand Down

0 comments on commit fa7a8d9

Please sign in to comment.