Skip to content

Commit c110d1e

Browse files
committed
fix(android): fix w3c caught header
1 parent 3a53200 commit c110d1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugAPMModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private void networkLogAndroid(final double requestStartTime,
338338

339339
final boolean hasError = errorDomain != null && !errorDomain.isEmpty();
340340
final String errorMessage = hasError ? errorDomain : null;
341-
Boolean isW3cHeaderFound=false;
341+
Boolean isW3cHeaderFound=false;
342342
Long partialId=null;
343343
Long networkStartTimeInSeconds=null;
344344

@@ -348,7 +348,7 @@ private void networkLogAndroid(final double requestStartTime,
348348
isW3cHeaderFound = w3cAttributes.getBoolean("isW3cHeaderFound");
349349
}
350350

351-
if (w3cAttributes.hasKey("partialId")) {
351+
if (!w3cAttributes.isNull("partialId")) {
352352
partialId =(long) w3cAttributes.getDouble("partialId");
353353
networkStartTimeInSeconds = (long) w3cAttributes.getDouble("networkStartTimeInSeconds");
354354
}

0 commit comments

Comments
 (0)