make sure we have a db in SyncFlags, bullet proofing for crash going offline r/sr=sspitzer 181372

git-svn-id: svn://10.0.0.236/trunk@134662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%netscape.com
2002-12-03 03:42:36 +00:00
parent 4f21694b30
commit ed468a3721

View File

@@ -3961,7 +3961,9 @@ nsImapMailFolder::BeginMessageUpload()
// synchronize the message flags in the database with the server flags
nsresult nsImapMailFolder::SyncFlags(nsIImapFlagAndUidState *flagState)
{
{
nsresult rv = GetDatabase(nsnull); // we need a database for this
NS_ENSURE_SUCCESS(rv, rv);
// update all of the database flags
PRInt32 messageIndex;
PRUint32 messageSize;