diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-16 05:11:39 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-16 05:11:39 +0200 |
commit | f8f7429c9b6b3b1bb0bd4ab9b464f53dd6300233 (patch) | |
tree | cddc0479e83e65351df8ea96b2a57c672e3dbf5b /main/src/ui/java/de | |
parent | 6d9c03cb81e61f53fe908d7fdc17dfa8b67cbc3e (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.kt | 4 |
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"; |