Skip to content

Commit

Permalink
Fix validation when try to get a name but there’s no name on view con…
Browse files Browse the repository at this point in the history
…troller (#730)
  • Loading branch information
Busta117 authored and f2prateek committed Nov 20, 2017
1 parent 18ef0c9 commit 17a59c4
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 || 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 17a59c4

Please sign in to comment.