Skip to content

Commit

Permalink
Fix for when a title may come back as empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-seek authored and f2prateek committed Jun 30, 2016
1 parent 7caab41 commit 3ac7115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Analytics/Classes/Internal/UIViewController+SEGScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (void)seg_viewDidAppear:(BOOL)animated
}

NSString *name = [top title];
if (!name) {
if (name.length == 0) {
name = [[[top class] description] stringByReplacingOccurrencesOfString:@"ViewController" withString:@""];
// Class name could be just "ViewController".
if (name.length == 0) {
Expand Down

0 comments on commit 3ac7115

Please sign in to comment.