We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8606c08 commit dd8e659Copy full SHA for dd8e659
android/src/main/kotlin/com/aheaditec/freerasp/Extensions.kt
@@ -45,7 +45,9 @@ internal fun SuspiciousAppInfo.toPigeon(context: Context): FlutterSuspiciousAppI
45
private fun PackageInfo.toPigeon(context: Context): FlutterPackageInfo {
46
return FlutterPackageInfo(
47
packageName = packageName,
48
- appName = context.packageManager.getApplicationLabel(applicationInfo) as String,
+ appName = applicationInfo?.let {
49
+ context.packageManager.getApplicationLabel(it) as String
50
+ },
51
version = getVersionString(),
52
appIcon = Utils.parseIconBase64(context, packageName),
53
installationSource = Utils.getInstallerPackageName(context, packageName),
0 commit comments