Fix an infinite loop
What do you mean "Can't happen"? It happens all the time - the empty string is the default ID, and it needs to be updated like everyone else. Bug: 8651858 Change-Id: I5a2f2ebb5b2ef08b27f26be8fb2c3d2f231ebcfc
This commit is contained in:
parent
530fd15eff
commit
77e26e1c29
1 changed files with 0 additions and 1 deletions
|
@ -181,7 +181,6 @@ public final class UpdateHandler {
|
||||||
if (!cursor.moveToFirst()) return;
|
if (!cursor.moveToFirst()) return;
|
||||||
do {
|
do {
|
||||||
final String clientId = cursor.getString(0);
|
final String clientId = cursor.getString(0);
|
||||||
if (TextUtils.isEmpty(clientId)) continue; // This probably can't happen
|
|
||||||
final String metadataUri =
|
final String metadataUri =
|
||||||
MetadataDbHelper.getMetadataUriAsString(context, clientId);
|
MetadataDbHelper.getMetadataUriAsString(context, clientId);
|
||||||
PrivateLog.log("Update for clientId " + Utils.s(clientId), context);
|
PrivateLog.log("Update for clientId " + Utils.s(clientId), context);
|
||||||
|
|
Loading…
Reference in a new issue