From 169e41aa300c3517857353e8d5b38bbcd7eafaac Mon Sep 17 00:00:00 2001 From: zackhow Date: Wed, 29 Aug 2018 16:41:47 -0400 Subject: [PATCH] Android: fix crash if user is offline If the user is offline, then there won't be a network response. Just debug log that the report couldn't send and move on --- .../main/java/org/dolphinemu/dolphinemu/utils/Analytics.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Analytics.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Analytics.java index 29133c48c8..e68852233c 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Analytics.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Analytics.java @@ -93,8 +93,7 @@ public class Analytics public static void sendReport(String endpoint, byte[] data) { StringRequest request = new StringRequest(Request.Method.POST, endpoint, - null, error -> Log.debug("Send Report Failure code: " - + error.networkResponse.statusCode)) + null, error -> Log.debug("Failed to send report")) { @Override public byte[] getBody()