Skip to content

Commit ac7f1d3

Browse files
Nikola ZagorchevNikola Zagorchev
authored andcommitted
fix(utils): Ruby string count check
1 parent be6565a commit ac7f1d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Leanplum-SDK/Classes/Utils.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ + (BOOL)isNullOrEmpty:(id)obj
3131
{
3232
return obj == nil
3333
|| ([obj respondsToSelector:@selector(length)] && [(NSData *)obj length] == 0)
34-
|| ([obj respondsToSelector:@selector(count)] && [(NSArray *)obj count] == 0);
34+
|| ([obj respondsToSelector:@selector(count)]
35+
&& ![obj isKindOfClass:[NSString class]] && [(NSArray *)obj count] == 0);
3536
}
3637

3738
+ (BOOL)isBlank:(NSString *)str

0 commit comments

Comments
 (0)