prevent crash if push uninstall request is app not in any repo
This commit is contained in:
parent
c8f804d0f6
commit
3cb34aa4b0
@ -487,7 +487,11 @@ public class RepoUpdater {
|
|||||||
|| repoPushRequest.versionCode == packageInfo.versionCode) {
|
|| repoPushRequest.versionCode == packageInfo.versionCode) {
|
||||||
Apk apk = ApkProvider.Helper.findApkFromAnyRepo(context, repoPushRequest.packageName,
|
Apk apk = ApkProvider.Helper.findApkFromAnyRepo(context, repoPushRequest.packageName,
|
||||||
packageInfo.versionCode);
|
packageInfo.versionCode);
|
||||||
|
if (apk == null) {
|
||||||
|
Log.i(TAG, "Push " + repoPushRequest.packageName + " request not found in any repo!");
|
||||||
|
} else {
|
||||||
InstallerService.uninstall(context, apk);
|
InstallerService.uninstall(context, apk);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Utils.debugLog(TAG, "ignoring request based on versionCode:" + repoPushRequest);
|
Utils.debugLog(TAG, "ignoring request based on versionCode:" + repoPushRequest);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user