Skip to content

Commit 703f1f9

Browse files
committed
Fix null pointer exception
1 parent 2ad3c09 commit 703f1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/shadowsocks/plugin/v2ray/ConfigFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ConfigFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChange
5959
putWithDefault("tls", tls)
6060
putWithDefault("host", host.text, "cloudfront.com")
6161
putWithDefault("path", path.text, "/")
62-
putWithDefault("certRaw", certRaw.text.replace("\n", ""), "")
62+
putWithDefault("certRaw", certRaw.text?.replace("\n", ""), "")
6363
putWithDefault("loglevel", loglevel.value, "warning")
6464
}
6565

0 commit comments

Comments
 (0)