From 5a69403c03787ec960cc80fedc59dc7720791115 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Sun, 16 May 2010 16:53:15 -0700 Subject: [PATCH] Fix issue found by FindBugs Bug: 2664472 Change-Id: I861d1a1a3f8f6af4cb62c67b6acfb2c03bcba721 --- src/com/android/exchange/adapter/ContactsSyncAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/exchange/adapter/ContactsSyncAdapter.java b/src/com/android/exchange/adapter/ContactsSyncAdapter.java index 8b4adba47..c05a82087 100644 --- a/src/com/android/exchange/adapter/ContactsSyncAdapter.java +++ b/src/com/android/exchange/adapter/ContactsSyncAdapter.java @@ -1071,8 +1071,8 @@ public class ContactsSyncAdapter extends AbstractSyncAdapter { // If we've found an existing data row, we'll delete it. Any rows left at the // end should be deleted... - if (result != null) { - list.remove(result); + for (NamedContentValues values : result) { + list.remove(values); } // Return the row found (or null)