Fix exception in set operation of sogo-tool

This commit is contained in:
Francis Lachapelle
2015-02-12 09:29:40 -05:00
parent 601a9ca559
commit c20ca0e33d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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];
}