Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ public class EmailUserType extends ImmutableUserType {
public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
throws HibernateException, SQLException {
String value = rs.getString(names[0]);
if (rs.wasNull()) {
if (rs.wasNull())
return null;
} else {
return Email.fromString(value);
}

return Email.fromString(value);
}

@Override
Expand All @@ -61,4 +60,4 @@ public int[] sqlTypes() {
return new int[] { Types.VARCHAR };
}

}
}