From f355b9a3b7d112e1b5cd350b6508b7ac0adfee88 Mon Sep 17 00:00:00 2001 From: Andrei Boeru Date: Thu, 19 Dec 2013 15:37:20 +0100 Subject: [PATCH] RequestHandler: more generic exception catching to catch java.lang.AssertionError on executing the http request AssertionError is thrown on some devices where for example MD5 is not available: java.security.NoSuchAlgorithmException: MessageDigest MD5 implementation not found --- AdjustIo/src/com/adeven/adjustio/RequestHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdjustIo/src/com/adeven/adjustio/RequestHandler.java b/AdjustIo/src/com/adeven/adjustio/RequestHandler.java index 0a6c4c6c3..2355efe7e 100644 --- a/AdjustIo/src/com/adeven/adjustio/RequestHandler.java +++ b/AdjustIo/src/com/adeven/adjustio/RequestHandler.java @@ -117,8 +117,8 @@ private void sendInternal(ActivityPackage activityPackage) { closePackage(activityPackage, "Request timed out", e); } catch (IOException e) { closePackage(activityPackage, "Request failed", e); - } catch (Exception e) { - sendNextPackage(activityPackage, "Runtime exeption", e); + } catch (Throwable e) { + sendNextPackage(activityPackage, "Runtime exception", e); } }