Skip to content

Commit

Permalink
* [SDENT-195] Added a null check for Statement instance before gettin…
Browse files Browse the repository at this point in the history
…g its maxRows value. (#559)

* Discussed with @neeraj-tibco
  • Loading branch information
ashetkar authored Jun 16, 2020
1 parent 6b4e216 commit aeae20a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,8 @@ public final void setFetchSize(int rows) throws SQLException {

final int maxRows;
if (rows >= 0
&& ((maxRows = this.statement.getMaxRows()) == 0 || rows <= maxRows)) {
&& ((maxRows = this.statement == null ? 0 : this.statement.getMaxRows()) == 0
|| rows <= maxRows)) {
this.fetchSize = rows;
}
else {
Expand Down

0 comments on commit aeae20a

Please sign in to comment.