Skip to content

Commit

Permalink
Change clearContext to set new dictionaries instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Jun 26, 2017
1 parent a82d8a2 commit bedabb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Sentry/SentryClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ - (void)setUser:(SentryUser *_Nullable)user {

- (void)clearContext {
[self setUser:nil];
[self setExtra:nil];
[self setTags:nil];
[self setExtra:[NSDictionary new]];
[self setTags:[NSDictionary new]];
}

#pragma mark KSCrash
Expand Down

0 comments on commit bedabb0

Please sign in to comment.