Skip to content

Commit 5bf27a2

Browse files
SebC99flovilmart
authored andcommitted
Fix an issue preventing events without dimensions to be send (#1317)
1 parent b149cc0 commit 5bf27a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/Parse/Internal/Analytics/Controller/PFAnalyticsController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ + (instancetype)controllerWithDataSource:(id<PFEventuallyQueueProvider>)dataSour
7979
@strongify(self);
8080
NSError *error;
8181
NSDictionary *encodedDimensions = [[PFNoObjectEncoder objectEncoder] encodeObject:dimensions error:&error];
82-
if (encodedDimensions == nil) {
82+
if (error != nil) {
8383
return [BFTask taskWithError:error];
8484
}
8585
PFRESTCommand *command = [PFRESTAnalyticsCommand trackEventCommandWithEventName:name

0 commit comments

Comments
 (0)