Skip to content

Commit

Permalink
增加缺失的空集合判断,修复rules丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Dec 4, 2024
1 parent b12aec2 commit 25c3357
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nop-web/src/main/java/io/nop/web/page/WebPageHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ public static void removeNullEntry(Object map) {
return true;
}
} else if (value instanceof Collection) {
if (name.equals("rules"))
return true;
if(((Collection<?>) value).isEmpty()) {
if (name.equals("rules"))
return true;
}
}
return false;
});
Expand Down

0 comments on commit 25c3357

Please sign in to comment.