Skip to content

Commit 96ae1d5

Browse files
author
chengyitian
committed
AJ-845: add check for SCRAM when use ayncTask;
1 parent 0669c56 commit 96ae1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ else if (e.getMessage().contains("sha256 authMode doesn't support scram authMode
332332
throw e;
333333
}
334334

335-
if (!result.isVector() || result.rows() != 3)
335+
if (Objects.isNull(result) || !result.isVector() || result.rows() != 3)
336336
throw new IOException("SCRAM login failed, server error: get server nonce failed.");
337337

338338
String saltString = ((Vector) result).get(0).getString();

0 commit comments

Comments
 (0)