修复一个判空问题

This commit is contained in:
ningwenqiang 2024-09-05 15:00:56 +08:00
parent 9c117e2752
commit b56a0bcce4

View File

@ -20,6 +20,9 @@ public class UiConversationCodeUtil {
public static boolean checkIsSame(List<BaseUiConversation> list1, List<BaseUiConversation> list2) { public static boolean checkIsSame(List<BaseUiConversation> list1, List<BaseUiConversation> list2) {
if (list1.isEmpty()){
return false;
}
if (list1.size() != list2.size()) return false; if (list1.size() != list2.size()) return false;
int hashCode1 = getListHasCode(list1); int hashCode1 = getListHasCode(list1);
int hashCode2 = getListHasCode(list2); int hashCode2 = getListHasCode(list2);