Skip to content

Commit f355b9a

Browse files
author
Andrei Boeru
committed
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
1 parent 7b65a6c commit f355b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AdjustIo/src/com/adeven/adjustio/RequestHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ private void sendInternal(ActivityPackage activityPackage) {
117117
closePackage(activityPackage, "Request timed out", e);
118118
} catch (IOException e) {
119119
closePackage(activityPackage, "Request failed", e);
120-
} catch (Exception e) {
121-
sendNextPackage(activityPackage, "Runtime exeption", e);
120+
} catch (Throwable e) {
121+
sendNextPackage(activityPackage, "Runtime exception", e);
122122
}
123123
}
124124

0 commit comments

Comments
 (0)