mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add null check
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user