Skip to content

Commit

Permalink
commit minor bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomtzlosa committed Oct 26, 2011
1 parent e17e470 commit 0040a2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Binary file not shown.
2 changes: 2 additions & 0 deletions MultiContactsSelector/NSString+Additions.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@

- (NSString *)reformatTelephone;

- (BOOL)containsNullString;

@end
6 changes: 6 additions & 0 deletions MultiContactsSelector/NSString+Additions.h.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,10 @@ - (NSString *)reformatTelephone

return self;
}

- (BOOL)containsNullString
{
return ([[self lowercaseString] containsString:@"null"]) ? YES : NO;
}

@end
2 changes: 1 addition & 1 deletion MultiContactsSelector/SMContactsSelector.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ - (void)viewDidLoad
NSString *name = [dict valueForKey:@"name"];
name = [name stringByReplacingOccurrencesOfString:@" " withString:@""];

if (![name isLetter])
if ((![name isLetter]) && (![name containsNullString]))
{
[array addObject:dict];
}
Expand Down

0 comments on commit 0040a2a

Please sign in to comment.