From 5284e19f0b0b7626209629a3e519bf59da118958 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 30 Sep 2019 19:42:02 +0200 Subject: InetAddresses: prepare for Android 10's real method support --- app/src/main/java/com/wireguard/config/InetAddresses.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/com/wireguard') diff --git a/app/src/main/java/com/wireguard/config/InetAddresses.java b/app/src/main/java/com/wireguard/config/InetAddresses.java index ea4ad352..69fd6cfb 100644 --- a/app/src/main/java/com/wireguard/config/InetAddresses.java +++ b/app/src/main/java/com/wireguard/config/InetAddresses.java @@ -49,6 +49,8 @@ public final class InetAddresses { if (cause instanceof IllegalArgumentException) throw new ParseException(InetAddress.class, address, cause); throw new RuntimeException(e); + } catch (final IllegalArgumentException e) { + throw new ParseException(InetAddress.class, address, e); } } } -- cgit v1.2.3