fix null bug

This commit is contained in:
Looly
2022-06-05 23:40:34 +08:00
parent 8ea0f676b8
commit 78b6c9909e
4 changed files with 26 additions and 23 deletions

View File

@@ -392,4 +392,16 @@ public class ConvertTest {
final LocalDate convert = Convert.convert(LocalDate.class, localDateTime);
Assert.assertEquals(localDateTime.toLocalDate(), convert);
}
@Test
public void toSBCTest(){
final String s = Convert.toSBC(null);
Assert.assertNull(s);
}
@Test
public void toDBCTest(){
final String s = Convert.toDBC(null);
Assert.assertNull(s);
}
}