Skip to content

Commit 95ae3e4

Browse files
committed
fix nullptr error
1 parent 828032e commit 95ae3e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ public void calculateContinuousFailure(String tableName, String errorMsg) throws
790790

791791
public void resetContinuousFailureByTableName(String tableName) {
792792
AtomicLong res = tableContinuousFailures.get(tableName);
793-
res.set(0);
793+
if (res != null) {
794+
res.set(0);
795+
}
794796
}
795797

796798
/**

0 commit comments

Comments
 (0)