Browse Source

字符串是否为空完善

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
a1001bdfc0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scommons/src/main/java/com/xhkjedu/utils/N_Utils.java

+ 1
- 1
scommons/src/main/java/com/xhkjedu/utils/N_Utils.java View File

41
      * @author WN
41
      * @author WN
42
      */
42
      */
43
     public static boolean isNotEmpty(Object obj) {
43
     public static boolean isNotEmpty(Object obj) {
44
-        if (null == obj || "".equals(obj.toString().trim())) {
44
+        if (null == obj || "".equals(obj.toString().trim()) || "null".equals(obj.toString().trim())) {
45
             return false;
45
             return false;
46
         } else {
46
         } else {
47
             return true;
47
             return true;

Loading…
Cancel
Save