Bug 677089 - crash [@ nsAbOSXDirectory::AssertCard]; r+a=Standard8
authorMike Conley <mconley@mozilla.com>
Mon, 08 Aug 2011 10:02:58 -0400
changeset 8374 c2b9aaff6ff58508c47db9d5a0a76e2e9aaf2e94
parent 8373 4eb158b9555d8b6e2d516b3daf7cdb77ed1d5954
child 8375 15e5ee238a76e89453ab6332a26a4e4b80fc92c0
push idunknown
push userunknown
push dateunknown
bugs677089
Bug 677089 - crash [@ nsAbOSXDirectory::AssertCard]; r+a=Standard8
mailnews/addrbook/src/nsAbOSXDirectory.mm
--- a/mailnews/addrbook/src/nsAbOSXDirectory.mm
+++ b/mailnews/addrbook/src/nsAbOSXDirectory.mm
@@ -211,18 +211,19 @@ Sync(NSString *aUid)
         GetOrCreateGroup([inserted objectAtIndex:i],
                          getter_AddRefs(directory));
         
         rv = osxDirectory->AssertDirectory(abManager, directory);
         NS_ENSURE_SUCCESS(rv, );
       }
       else {
         nsCOMPtr<nsIAbCard> abCard;
-       // Construct a card
+        // Construct a card
         nsresult rv = CreateCard(card, getter_AddRefs(abCard));
+        NS_ENSURE_SUCCESS(rv, );
         rv = osxDirectory->AssertCard(abManager, abCard);
         NS_ENSURE_SUCCESS(rv, );
       }
     }
   }
   
   NSArray *updated = [changes objectForKey:kABUpdatedRecords];
   if (updated) {