Skip to content

Commit a1707e6

Browse files
author
Daniel Schilling
committed
Squashed commit of the following:
commit e4dd6b8 Author: Aly ezz <[email protected]> Date: Tue Dec 8 13:07:19 2020 +0200 Add to string conversion commit 532c48b Author: Aly ezz <[email protected]> Date: Mon Dec 7 21:12:48 2020 +0200 Add default values to network data object
1 parent 1f2f4e5 commit a1707e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

android/src/main/java/com/instabug/instabugflutter/InstabugFlutterPlugin.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,10 @@ public void networkLog(HashMap<String, Object> jsonObject) throws JSONException
885885
NetworkLog networkLog = new NetworkLog();
886886
String date = System.currentTimeMillis() + "";
887887
networkLog.setDate(date);
888-
networkLog.setUrl((String) jsonObject.get("url"));
889-
networkLog.setRequest((String) jsonObject.get("requestBody"));
890-
networkLog.setResponse((String) jsonObject.get("responseBody"));
891-
networkLog.setMethod((String) jsonObject.get("method"));
888+
networkLog.setUrl((String) jsonObject.get("url").toString());
889+
networkLog.setRequest((String) jsonObject.get("requestBody").toString());
890+
networkLog.setResponse((String) jsonObject.get("responseBody").toString());
891+
networkLog.setMethod((String) jsonObject.get("method").toString());
892892
networkLog.setResponseCode((Integer) jsonObject.get("responseCode"));
893893
networkLog.setRequestHeaders(
894894
(new JSONObject((HashMap<String, String>) jsonObject.get("requestHeaders"))).toString(4));

0 commit comments

Comments
 (0)