case Types.JAVA_OBJECT:
Object object = rs.getObject(column.getPosition());
if (rs.wasNull()) {
object = null;
}
dyn.put(object, object.getClass(), column);
break;
if rs.wasNull returns true then object is set to null. null.getClass will thrown a NPE.