Fix exception in set operation of sogo-tool

This commit is contained in:
Francis Lachapelle committed 2015-02-12 09:29:40 -05:00
1 parent 601a9ca559
commit c20ca0e33d
2 files changed
+3 -2

No files matched your search

+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];
}