aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2017-11-07 17:08:27 +0100
committerpacien2017-11-07 17:08:27 +0100
commit24dbee4690fd102d9b723765fba5799c5790b001 (patch)
treea0b5ffb5d09fb153b678f12164408d5f9da380ba
parent4cf8955ea2ecedd39ba2be6b2763c300eb0c8996 (diff)
downloadtincapp-24dbee4690fd102d9b723765fba5799c5790b001.tar.gz
Do not crash on Bouncycastle error without message
-rw-r--r--app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
index 3db8dce..f22e1e1 100644
--- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
+++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
@@ -76,7 +76,7 @@ class TincVpnService : VpnService() {
76 } catch (e: FileNotFoundException) { 76 } catch (e: FileNotFoundException) {
77 Pair(null, null) 77 Pair(null, null)
78 } catch (e: PEMException) { 78 } catch (e: PEMException) {
79 return reportError(resources.getString(R.string.message_could_not_decrypt_private_keys_format, e.message!!)) 79 return reportError(resources.getString(R.string.message_could_not_decrypt_private_keys_format, e.message))
80 } 80 }
81 81
82 Tincd.start(netName, deviceFd!!.fd, privateKeys.first?.fd, privateKeys.second?.fd) 82 Tincd.start(netName, deviceFd!!.fd, privateKeys.first?.fd, privateKeys.second?.fd)