mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-07 17:48:40 +08:00
fix: 修复字符串null
This commit is contained in:
parent
5a3ad06601
commit
7d84d1a81c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user