diff --git a/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt b/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt index 39cd1245d..d6555609e 100644 --- a/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt +++ b/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt @@ -85,6 +85,12 @@ class AssetModuleServiceImpl( return } lifecycleScope.launchWhenStarted { + if (list.all { it.getString(KEY_MODULE_NAME) == null }) { + Log.d(TAG, "startDownload: module name is null") + val result = Bundle().apply { putStringArrayList(KEY_PACK_NAMES, arrayListOf()) } + callback?.onStartDownload(-1, result) + return@launchWhenStarted + } if (moduleErrorRequested.contains(packageName)) { Log.d(TAG, "startDownload: moduleData request error") val result = Bundle().apply { putStringArrayList(KEY_PACK_NAMES, arrayListOf()) }