From cace968890906928e38529117147b2ac6be411d4 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 26 Jun 2019 12:01:18 +0200 Subject: [PATCH] Disallow empty event token --- Adjust/ADJEvent.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Adjust/ADJEvent.m b/Adjust/ADJEvent.m index 6e2c9eb25..87132abb1 100644 --- a/Adjust/ADJEvent.m +++ b/Adjust/ADJEvent.m @@ -110,6 +110,10 @@ - (BOOL)checkEventToken:(NSString *)eventToken { [self.logger error:@"Missing Event Token"]; return NO; } + if ([eventToken length] <= 0) { + [self.logger error:@"Event Token can't be empty"]; + return NO; + } return YES; }