mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
add null check
This commit is contained in:
parent
18763decae
commit
f39d7c5393
@ -119,7 +119,10 @@ public class SplitUtilTest {
|
||||
|
||||
@Test
|
||||
void issue3421Test() {
|
||||
final List<String> strings = SplitUtil.splitByRegex("", "", 0, false, false);
|
||||
List<String> strings = SplitUtil.splitByRegex("", "", 0, false, false);
|
||||
Assertions.assertEquals(ListUtil.empty(), strings);
|
||||
|
||||
strings = SplitUtil.splitByRegex("aaa", "", 0, false, false);
|
||||
Assertions.assertEquals(ListUtil.of("aaa"), strings);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user