Skip to content

Commit fbac81e

Browse files
committed
added a null check
1 parent 37df6a4 commit fbac81e

File tree

1 file changed

+3
-0
lines changed
  • jdbc-v2/src/main/java/com/clickhouse/data

1 file changed

+3
-0
lines changed

jdbc-v2/src/main/java/com/clickhouse/data/Tuple.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public boolean equals(Object obj) {
4646
if (this == obj) {
4747
return true;
4848
}
49+
if (obj == null) {
50+
return false;
51+
}
4952
if (obj instanceof Tuple) {
5053
Tuple other = (Tuple) obj;
5154
return Arrays.equals(values, other.values);

0 commit comments

Comments
 (0)