diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-16 15:05:04 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-16 15:05:18 +0200 |
commit | 04ff63f1b5eef19ffd5f7647842ac3d61fa43cdd (patch) | |
tree | 54423cd715598916a9582bf2d21eb5c7a4d411ce /app/src | |
parent | 71cf39660f7cd1005519a0676c0661cef1335331 (diff) |
InetAddresses: unwrap reflection exceptions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/wireguard/config/InetAddresses.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/config/InetAddresses.java b/app/src/main/java/com/wireguard/config/InetAddresses.java index 3cc84b01..b7304cce 100644 --- a/app/src/main/java/com/wireguard/config/InetAddresses.java +++ b/app/src/main/java/com/wireguard/config/InetAddresses.java @@ -34,7 +34,7 @@ public final class InetAddresses { try { return (InetAddress) PARSER_METHOD.invoke(null, address); } catch (final IllegalAccessException | InvocationTargetException e) { - throw new RuntimeException(e); + throw new RuntimeException(e.getCause() == null ? e : e.getCause()); } } } |