#732 - NPE in ScalarTypeArrayList.read(ScalarTypeArrayList.java:89) ...

This commit is contained in:
Robin Bygrave
2016-06-03 08:09:04 +12:00
parent 1304646cce
commit 1a3acb86df
2 changed files with 26 additions and 1 deletions
@@ -86,7 +86,11 @@ public class ScalarTypeArrayList extends ScalarTypeJsonCollection<List> {
@Override
public List read(DataReader reader) throws SQLException {
Array array = reader.getArray();
return fromArray((Object[]) array.getArray());
if (array == null) {
return null;
} else {
return fromArray((Object[]) array.getArray());
}
}
@Override