Skip to content

Commit

Permalink
Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
linchen059 committed Jan 6, 2022
1 parent 59d7652 commit 0dccb76
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -348,7 +348,7 @@ public Date getDate(String columnLabel) throws SQLException {
@Override
public Date getDate(int columnIndex, Calendar cal) throws SQLException {
ClickHouseValue value = getValue(columnIndex);
if (value == null) {
if (value == null || value.isNullOrEmpty()) {
return null;
}

Expand Down Expand Up @@ -588,7 +588,7 @@ public Time getTime(String columnLabel) throws SQLException {
@Override
public Time getTime(int columnIndex, Calendar cal) throws SQLException {
ClickHouseValue value = getValue(columnIndex);
if (value == null) {
if (value == null || value.isNullOrEmpty()) {
return null;
}

Expand Down Expand Up @@ -619,7 +619,7 @@ public Timestamp getTimestamp(String columnLabel) throws SQLException {
@Override
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
ClickHouseValue value = getValue(columnIndex);
if (value == null) {
if (value == null || value.isNullOrEmpty()) {
return null;
}

Expand Down

0 comments on commit 0dccb76

Please sign in to comment.