fix:解决会话列表UnsupportedOperationException的问题

This commit is contained in:
zhongzb
2023-05-28 22:38:49 +08:00
parent 4f071b6de6
commit 9e4effbc0e
2 changed files with 10 additions and 2 deletions

View File

@@ -47,6 +47,13 @@ public class AssertUtil {
}
}
//如果不是非空对象,则抛异常
public static void isNotEmpty(Object obj, ErrorEnum errorEnum, Object... args) {
if (isEmpty(obj)) {
throwException(errorEnum, args);
}
}
//如果不是非空对象,则抛异常
public static void isEmpty(Object obj, String msg) {
if (!isEmpty(obj)) {