Commit 38711218 authored by Liang Ding's avatar Liang Ding

#12724

parent 4aa52aee
......@@ -54,7 +54,15 @@ public class OptionQueryService {
*/
public JSONObject getSkin() {
try {
return getOptions(Option.CATEGORY_C_SKIN);
JSONObject ret = getOptions(Option.CATEGORY_C_SKIN);
if (null == ret) {
// TODO: 在 v3.5.0 发布后可移除判空
ret = new JSONObject().
put(Option.ID_C_SKIN_DIR_NAME, Option.DefaultPreference.DEFAULT_SKIN_DIR_NAME).
put(Option.ID_C_MOBILE_SKIN_DIR_NAME, Option.DefaultPreference.DEFAULT_MOBILE_SKIN_DIR_NAME);
}
return ret;
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Gets skin failed", e);
......
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