From ae35593f65a72920733e9a242c9ff16853d419c0 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 16 Jul 2018 20:42:40 +0200 Subject: [PATCH] catch all exceptions when checking file size --- .../java/eu/siacs/conversations/http/HttpUploadConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java index 0574c9fc3..cd64bcda5 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java @@ -230,7 +230,7 @@ public class HttpUploadConnection implements Transferable { Log.d(Config.LOGTAG,"http upload failed because response code was "+code); fail("http upload failed because response code was "+code); } - } catch (IOException e) { + } catch (Exception e) { e.printStackTrace(); Log.d(Config.LOGTAG,"http upload failed "+e.getMessage()); fail(e.getMessage());