From c20ca0e33dd3e25ba41f7b2a2cd70a1c39d1e125 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 12 Feb 2015 09:29:40 -0500 Subject: [PATCH] Fix exception in set operation of sogo-tool --- NEWS | 3 ++- Tools/SOGoToolUserPreferences.m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index faa64df66..1d4781387 100644 --- a/NEWS +++ b/NEWS @@ -16,7 +16,8 @@ Bug fixes - (regression) fixed sending a message when mail module is not active (#3088) - mail lables with blanks are not handled correctly (#3078) - fixed BlackBerry issues sending multiple mails over EAS (#3095) - - fixed plain/text mails showing on one line on Android/EAS (#3055) + - fixed plain/text mails showing on one line on Android/EAS (#3055) + - fixed exception in sogo-tool when parsing arguments of a set operation 2.2.15 (2015-01-30) ------------------- diff --git a/Tools/SOGoToolUserPreferences.m b/Tools/SOGoToolUserPreferences.m index a6255d6f0..4f981cb4f 100644 --- a/Tools/SOGoToolUserPreferences.m +++ b/Tools/SOGoToolUserPreferences.m @@ -254,7 +254,7 @@ typedef enum // // to achieve what we want. // - if (o && [o count] == 1) + if (o && [o isKindOfClass: [NSDictionary class]] && [o count] == 1) { [source setObject: [[o allValues] lastObject] forKey: key]; }