mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix: 修复字符串null
This commit is contained in:
@@ -4561,6 +4561,9 @@ public class CharSequenceUtil {
|
||||
public static StringBuilder builder(CharSequence... strs) {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
for (CharSequence str : strs) {
|
||||
if (null == str) {
|
||||
str = StrUtil.EMPTY;
|
||||
}
|
||||
sb.append(str);
|
||||
}
|
||||
return sb;
|
||||
|
||||
Reference in New Issue
Block a user