Avoid calls on null objects

Fixes #4329
This commit is contained in:
Francis Lachapelle committed 2017-11-08 16:24:26 -05:00
1 parent 650faa4d22
commit 38d4a26827
2 files changed
+22 -18

No files matched your search

+1
View File
@@ -521,6 +521,7 @@
for (i = 0; i < [_mailFields count]; i++)
if ((s = [response objectForKey: [_mailFields objectAtIndex: i]]) &&
[s isNotNull] &&
[[s stringByTrimmingSpaces] length] > 0)
[emails addObjectsFromArray: [s componentsSeparatedByString: @" "]];
}