Skip to content

Commit f8f7429

Browse files
committed
Fix possible NPE in fragment Utils
1 parent 6d9c03c commit f8f7429

File tree

1 file changed

+2
-2
lines changed
  • main/src/ui/java/de/blinkt/openvpn/fragments

1 file changed

+2
-2
lines changed

main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ object Utils {
289289
return builder
290290
}
291291

292-
val weakCiphers = listOf<String>("BF-CBC", "DES-CBC", "NONE")
292+
val weakCiphers = listOf("BF-CBC", "DES-CBC", "NONE")
293293

294294
@JvmStatic
295295
fun addSoftWarnings(warnings:MutableList<String>, vp:VpnProfile) {
@@ -305,7 +305,7 @@ object Utils {
305305
if ("insecure".equals(vp.mTlSCertProfile))
306306
warnings.add("low security (TLS security profile 'insecure' selected)");
307307

308-
var cipher= vp.mCipher.toUpperCase(Locale.ROOT)
308+
var cipher= vp.mCipher?.toUpperCase(Locale.ROOT)
309309
if (cipher.isNullOrEmpty())
310310
cipher = "BF-CBC";
311311

0 commit comments

Comments
 (0)