Fix null pointer exception

This commit is contained in:
Mygod 2019-01-15 19:12:49 +08:00
parent 2ad3c094fd
commit 703f1f92ac

View file

@ -59,7 +59,7 @@ class ConfigFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChange
putWithDefault("tls", tls) putWithDefault("tls", tls)
putWithDefault("host", host.text, "cloudfront.com") putWithDefault("host", host.text, "cloudfront.com")
putWithDefault("path", path.text, "/") putWithDefault("path", path.text, "/")
putWithDefault("certRaw", certRaw.text.replace("\n", ""), "") putWithDefault("certRaw", certRaw.text?.replace("\n", ""), "")
putWithDefault("loglevel", loglevel.value, "warning") putWithDefault("loglevel", loglevel.value, "warning")
} }