From 703f1f92ac3f6a7e6b42921ce166bb91e48717a9 Mon Sep 17 00:00:00 2001 From: Mygod Date: Tue, 15 Jan 2019 19:12:49 +0800 Subject: [PATCH] Fix null pointer exception --- .../java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt b/app/src/main/java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt index 53ae617..4e32d27 100644 --- a/app/src/main/java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt +++ b/app/src/main/java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt @@ -59,7 +59,7 @@ class ConfigFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChange putWithDefault("tls", tls) putWithDefault("host", host.text, "cloudfront.com") putWithDefault("path", path.text, "/") - putWithDefault("certRaw", certRaw.text.replace("\n", ""), "") + putWithDefault("certRaw", certRaw.text?.replace("\n", ""), "") putWithDefault("loglevel", loglevel.value, "warning") }