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…
Reference in New Issue