From 77fce4d4dacaf25c7c546058b1d143035681c747 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 1 Nov 2010 14:05:11 +0000 Subject: [PATCH] Monotone-Parent: be29419e109fd11f042493b967f5ccb451daec73 Monotone-Revision: 5230458dba570c663e9087a99852e38cfb26de0f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-11-01T14:05:11 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/Mailer/SOGoMailBaseObject.m | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index f1576d508..9cb1cbd9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-11-01 Wolfgang Sourdeau + + * SoObjects/Mailer/SOGoMailBaseObject.m (-_createIMAP4Connection): + we need to initialize newConnection to nil when the return + password is nil. + 2010-10-28 Francis Lachapelle * SoObjects/Mailer/SOGoDraftObject.m diff --git a/SoObjects/Mailer/SOGoMailBaseObject.m b/SoObjects/Mailer/SOGoMailBaseObject.m index 875e9a9b7..d0b7bfbb2 100644 --- a/SoObjects/Mailer/SOGoMailBaseObject.m +++ b/SoObjects/Mailer/SOGoMailBaseObject.m @@ -140,6 +140,9 @@ static BOOL debugOn = YES; password: password]; } } + else + newConnection = nil; + if (!newConnection) { newConnection = (NGImap4Connection *) [NSNull null];