From: Max R. A. <ma...@eo...> - 2002-10-25 09:18:06
|
Hi! The following code is found in CharacterType: public Object get(ResultSet rs, String name) throws SQLException { return new Character(rs.getString(name).charAt(0)); } Shouldn't this be something like the following to avoid a possible null value ?!: public Object get(ResultSet rs, String name) throws SQLException { String s = rs.getString(name); if(s!=null) { return new Character(s.charAt(0)); } else { return null; } } |