Return value check missing for ResultSet.next method
----------------------------------------------------
Key: HHH-5744
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5744
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.0
Reporter: Suresh Thummalapenta
Priority: Minor
We developed a mining-based approach that recovers specifications for APIs of JavaSDK and
uses those specifications to detect defects statically. In our study, we found that at
various places, return checks are missing in the core component of Hibernate. It would be
great if you could analyze and fix those issues.
Class: org.hibernate.id.GUIDGenerator.java
Method: generate, Line 67
Needs to check the return value of ResultSet.next() method, since it can return false if
no rows exist and getString results in exception.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira