Commit 1f66dc4e authored by fallenstardust's avatar fallenstardust

fix 收藏夹文本为空时的异常

parent 3753fcdd
......@@ -82,7 +82,7 @@ public class CardFavorites {
lines = FileUtils.readLines(config.getPath(), Constants.DEF_ENCODING);
for (String line : lines) {
String tmp = line.trim();
if (TextUtils.isDigitsOnly(tmp)) {
if (!tmp.isEmpty() && TextUtils.isDigitsOnly(tmp)) {
mList.add(Integer.parseInt(tmp));
}
}
......
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