Commit 42526eb1 authored by fallenstardust's avatar fallenstardust

在线备份为空时不执行比较排序

parent a6a2506e
......@@ -25,6 +25,7 @@ public class MyDeckResponse {
public List<MyOnlineDeckDetail> getData() {
//根据deckType排序,提高观感
if (!data.isEmpty() || data != null) {
data.sort((o1, o2) -> {
String type1 = o1.getDeckType();
String type2 = o2.getDeckType();
......@@ -34,6 +35,8 @@ public class MyDeckResponse {
if (type2 == null) return -1;
return type1.compareTo(type2);
});
}
return data;
}
......
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