Skip to content

Commit 7a0a6f5

Browse files
Ali AbdelfattahDavidMina96
Ali Abdelfattah
andauthored
[MOB-9148] Release v11.0.2 (#739)
* Bump version * [MOB-9082] Fix a crash on XMLHttpRequest error (#735) * Add a check to ensure `responseBody` validity * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Ali Abdelfattah <[email protected]> Co-authored-by: David Mina <[email protected]>
1 parent cacec43 commit 7a0a6f5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 11.0.2 (2022-07-20)
2+
3+
* Fixes a crash that occurs when logging some failed network requests
4+
15
## 11.0.1 (2022-06-13)
26

37
* Fixes an issue with network responses of type JSON not getting logged

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "11.0.1",
3+
"version": "11.0.2",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

utils/XhrNetworkInterceptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const XHRInterceptor = {
134134

135135
cloneNetwork.requestBodySize = cloneNetwork.requestBody.length;
136136

137-
if(cloneNetwork.responseBodySize === 0){
137+
if(cloneNetwork.responseBodySize === 0 && cloneNetwork.responseBody){
138138
cloneNetwork.responseBodySize = cloneNetwork.responseBody.length;
139139
}
140140

0 commit comments

Comments
 (0)