[CONJ-88] org.mariadb.jdbc.MySQLResultSet.getTimestamp(int, Calendar) throws NullPointerException if column is NULL Created: 2014-04-03 Updated: 2015-01-08 Resolved: 2014-06-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | None |
| Affects Version/s: | 1.1.6, 1.1.7 |
| Fix Version/s: | 1.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Erik Mattheis | Assignee: | Massimo Siani (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Since getValueObject(columnIndex).getTimestamp(cal) may return null, the method can throw NullPointerException
Easy fix is to check for null before attempting to call getTime()
|
| Comments |
| Comment by Massimo Siani (Inactive) [ 2014-06-19 ] |
|
Fixed in rev 510. |
| Comment by swathi marathi [ 2015-01-08 ] |
|
@Massimo Siani: From your above comments, i see that the issue is fixed. But i am unable to find the code checked in so that i can use it in my project. |