flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLINK-3472) JDBCInputFormat.nextRecord(..) has misleading message on NPE
Date Tue, 23 Feb 2016 11:31:18 GMT

     [ https://issues.apache.org/jira/browse/FLINK-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Chesnay Schepler reassigned FLINK-3472:

    Assignee: Chesnay Schepler

> JDBCInputFormat.nextRecord(..) has misleading message on NPE
> ------------------------------------------------------------
>                 Key: FLINK-3472
>                 URL: https://issues.apache.org/jira/browse/FLINK-3472
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 0.10.2
>            Reporter: Ken Geis
>            Assignee: Chesnay Schepler
>            Priority: Minor
> JDBCInputFormat.nextRecord(..) assumes that a NullPointerException could only occur by
the resultSet being null. It rethrows an exception with the message "Couldn't access resultSet".
See FLINK-3471 for an example of where the NPE could come from another situation. Either the
message should be changed or the scope of the try/catch should be tightened around the {{resultSet.next();}}

This message was sent by Atlassian JIRA

View raw message