Bug 677089 - crash [@ nsAbOSXDirectory::AssertCard]; r=Standard8
authorMike Conley <mconley@mozilla.com>
Mon, 08 Aug 2011 10:02:58 -0400
changeset 8304 bbf265b99212be581be15720e509bc1ba00b8494
parent 8303 34e57d72adab829757defbc502f7337cf1cfab53
child 8305 d5bf69e8b36cff315ed9ff799988ad490988b65c
push idunknown
push userunknown
push dateunknown
reviewersStandard8
bugs677089
Bug 677089 - crash [@ nsAbOSXDirectory::AssertCard]; r=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) {