Skip to content

Commit

Permalink
fix up crash when record timeout +Inf
Browse files Browse the repository at this point in the history
  • Loading branch information
戴黎明 committed Apr 16, 2020
1 parent 677889b commit 13d439a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ - (MTAppenderFile *)networkRecordsFile {

- (void)storeNetworkTransaction:(MTHNetworkTransaction *)transaction {
NSDictionary *dict = [transaction dictionaryFromAllProperty];
if ([dict count] == 0) {
if ([dict count] == 0 || ![NSJSONSerialization isValidJSONObject:dict]) {
return;
}

Expand Down

0 comments on commit 13d439a

Please sign in to comment.