Skip to content

Commit

Permalink
- fix: compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
menion committed Nov 22, 2024
1 parent 025016d commit 06fb081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ object LocusUtils {
val info = pm.getPackageInfo(packageName, 0) ?: return null

// finally add item to list
return LocusVersion(packageName, info.versionName, info.versionCode)
return LocusVersion(packageName, info.versionName ?: "", info.versionCode)
} catch (e: Exception) {
logE(tag = TAG, ex = e) { "getLocusVersion($ctx, $packageName)" }
return null
Expand Down

0 comments on commit 06fb081

Please sign in to comment.