From: <leg...@at...> - 2003-09-06 14:40:34
|
The following comment has been added to this issue: Author: Gavin King Created: Sat, 6 Sep 2003 9:40 AM Body: Nope. ""!=null in either SQL or Java! --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-313 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-313 Summary: CharacterType throws NullpointerException on empty characters Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: core Assignee: Reporter: Klaus Zimmermann Created: Fri, 5 Sep 2003 6:40 AM Updated: Fri, 5 Sep 2003 7:39 AM Environment: mysql, mysql-connector-java-2.0.14 Description: Some databases (i.e. MySql) seem to trim whitespaces under certain conditions. This leads to an empty String in CharacterType.get(ResultSet rs, String name) being provided by the ResultSet which passes the Null check and causes the NullPointer Exception in the str.charAt(0). Patch attached. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |