mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-03 20:27:58 +08:00
add null check
This commit is contained in:
parent
18763decae
commit
f39d7c5393
@ -119,7 +119,10 @@ public class SplitUtilTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void issue3421Test() {
|
void issue3421Test() {
|
||||||
final List<String> strings = SplitUtil.splitByRegex("", "", 0, false, false);
|
List<String> strings = SplitUtil.splitByRegex("", "", 0, false, false);
|
||||||
Assertions.assertEquals(ListUtil.empty(), strings);
|
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