mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-06 17:18:54 +08:00
fix #4112 收件人/抄送人/密送人/回复地址(reply-to)任何一个为空会空指针
This commit is contained in:
parent
c804cbd1dc
commit
fd4f3be568
@ -44,6 +44,7 @@ public class InternalMailUtil {
|
||||
* @since 4.0.3
|
||||
*/
|
||||
public static InternetAddress[] parseAddressFromStrs(final String[] addrStrs, final Charset charset) {
|
||||
if (ArrayUtil.isEmpty(addrStrs)) return new InternetAddress[0];
|
||||
final List<InternetAddress> resultList = new ArrayList<>(addrStrs.length);
|
||||
InternetAddress[] addrs;
|
||||
for (final String addrStr : addrStrs) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user