summaryrefslogtreecommitdiff
path: root/main/src/ui/java/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-16 05:11:39 +0200
committerArne Schwabe <arne@rfc2549.org>2021-10-16 05:11:39 +0200
commitf8f7429c9b6b3b1bb0bd4ab9b464f53dd6300233 (patch)
treecddc0479e83e65351df8ea96b2a57c672e3dbf5b /main/src/ui/java/de
parent6d9c03cb81e61f53fe908d7fdc17dfa8b67cbc3e (diff)
Fix possible NPE in fragment Utils
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt
index 2130cdef..4fdd50ba 100644
--- a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt
+++ b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt
@@ -289,7 +289,7 @@ object Utils {
return builder
}
- val weakCiphers = listOf<String>("BF-CBC", "DES-CBC", "NONE")
+ val weakCiphers = listOf("BF-CBC", "DES-CBC", "NONE")
@JvmStatic
fun addSoftWarnings(warnings:MutableList<String>, vp:VpnProfile) {
@@ -305,7 +305,7 @@ object Utils {
if ("insecure".equals(vp.mTlSCertProfile))
warnings.add("low security (TLS security profile 'insecure' selected)");
- var cipher= vp.mCipher.toUpperCase(Locale.ROOT)
+ var cipher= vp.mCipher?.toUpperCase(Locale.ROOT)
if (cipher.isNullOrEmpty())
cipher = "BF-CBC";