Commit 7370b6a0 authored by Max Lv's avatar Max Lv

Fix #937

parent 158afb1d
...@@ -146,7 +146,7 @@ class ShadowsocksApplication extends Application { ...@@ -146,7 +146,7 @@ class ShadowsocksApplication extends Application {
} }
} else { } else {
val newLocale = checkChineseLocale(config.locale) val newLocale = checkChineseLocale(config.locale)
if (config.locale != newLocale) { if (newLocale != null && config.locale != newLocale) {
val newConfig = new Configuration(config) val newConfig = new Configuration(config)
newConfig.locale = newLocale newConfig.locale = newLocale
val res = getResources val res = getResources
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment