Don't crash if an apk exists for a non-existing app

This commit is contained in:
Daniel Martí 2013-12-07 13:00:10 +01:00
parent 901112b29d
commit 23dcfadefa

View File

@ -898,6 +898,10 @@ public class DB {
while (!c.isAfterLast()) { while (!c.isAfterLast()) {
String id = c.getString(0); String id = c.getString(0);
App app = apps.get(id); App app = apps.get(id);
if (app == null) {
c.moveToNext();
continue;
}
boolean compatible = c.getInt(10) == 1; boolean compatible = c.getInt(10) == 1;
int repoid = c.getInt(11); int repoid = c.getInt(11);
if (compatible || incompatibleVersions) { if (compatible || incompatibleVersions) {