mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#732 - NPE in ScalarTypeArrayList.read(ScalarTypeArrayList.java:89) ...
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.avaje.ebeaninternal.server.type;
|
||||
|
||||
|
||||
import org.junit.Test;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class ScalarTypeArrayListTest {
|
||||
|
||||
@Test
|
||||
public void read_when_null() throws SQLException {
|
||||
|
||||
DataReader mock = Mockito.mock(DataReader.class);
|
||||
Mockito.when(mock.getArray()).thenReturn(null);
|
||||
|
||||
ScalarTypeArrayList scalarType = ScalarTypeArrayList.typeFor(Long.class);
|
||||
scalarType.read(mock);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user