Permalink
Browse files

quick fix remove null values

  • Loading branch information...
1 parent afd8911 commit 3e08f3419895f9ed10cd038b08d0ab7b550db838 sergiomtzlosa committed May 29, 2012
View
BIN .DS_Store
Binary file not shown.
View
BIN ...r.xcodeproj/project.xcworkspace/xcuserdata/sid.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
8 MultiContactsSelector/SMContactsSelector/SMContactsSelector.m
@@ -391,8 +391,14 @@ - (void)viewDidLoad
CFRelease(addressBook);
NSMutableArray *temp = [[NSMutableArray alloc] initWithArray:dataArray];
- temp = [temp removeNullValues];
+
+ if (temp && [temp count] > 0)
+ {
+ temp = [temp removeNullValues];
+ }
+
temp = [temp removeDuplicateObjects];
+
dataArray = nil;
dataArray = [NSArray arrayWithArray:temp];

0 comments on commit 3e08f34

Please sign in to comment.