summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/ProfileService.java
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-01 01:12:59 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-01 01:12:59 -0500
commit874db0b95e8351ce8170b6e9c5a0aa930160ca08 (patch)
treee73b27e0026373b68799c8a119ee9a98a6044930 /app/src/main/java/com/wireguard/android/ProfileService.java
parent19e8087642f3bb621d5c41db7f5f144345ab3c53 (diff)
Interface: Convert to using Keypair class
This allows retrieving the public key and generating keypairs, both of which will be exposed in the UI. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/ProfileService.java')
-rw-r--r--app/src/main/java/com/wireguard/android/ProfileService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/ProfileService.java b/app/src/main/java/com/wireguard/android/ProfileService.java
index 93d2049f..5bc0593c 100644
--- a/app/src/main/java/com/wireguard/android/ProfileService.java
+++ b/app/src/main/java/com/wireguard/android/ProfileService.java
@@ -156,7 +156,7 @@ public class ProfileService extends Service {
profile.parseFrom(openFileInput(fileName));
profile.setIsConnected(interfaceNames.contains(profileName));
loadedProfiles.add(profile);
- } catch (IOException e) {
+ } catch (IOException | IndexOutOfBoundsException e) {
Log.w(TAG, "Failed to load profile from " + fileName, e);
}
}