We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025016d commit 06fb081Copy full SHA for 06fb081
locus-api-android/src/main/java/locus/api/android/utils/LocusUtils.kt
@@ -187,7 +187,7 @@ object LocusUtils {
187
val info = pm.getPackageInfo(packageName, 0) ?: return null
188
189
// finally add item to list
190
- return LocusVersion(packageName, info.versionName, info.versionCode)
+ return LocusVersion(packageName, info.versionName ?: "", info.versionCode)
191
} catch (e: Exception) {
192
logE(tag = TAG, ex = e) { "getLocusVersion($ctx, $packageName)" }
193
return null
0 commit comments