mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Fixed nil object insertion crash due to incorrectly encoded HTTP response body data
This commit is contained in:
parent
8afdf30363
commit
bc24be8584
@ -61,7 +61,7 @@ RCT_EXPORT_METHOD(queryData:(NSString *)queryType
|
||||
responseJSON = @{
|
||||
@"status": @0,
|
||||
@"responseHeaders": @{},
|
||||
@"responseText": [connectionError localizedDescription]
|
||||
@"responseText": [connectionError localizedDescription] ?: [NSNull null];
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -191,6 +191,7 @@ static NSArray *RCTBridgeModuleClassesByModuleID(void)
|
||||
superclass = class_getSuperclass(superclass);
|
||||
}
|
||||
}
|
||||
free(classes);
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user