[inner-2251] fix: splitUser + enable statistics npe appears using python + ps protocol

This commit is contained in:
wenyh1
2023-10-17 14:56:41 +08:00
parent 3abe142808
commit cb7f9a9717

View File

@@ -236,6 +236,8 @@ public class StatisticRecord {
protected void pushBackendSql(StatisticBackendSqlEntry backendSqlEntry) {
if (backendSqlEntry != null && !backendSqlEntry.isEnd()) {
backendSqlEntry.setEnd(true);
if (backendSqlEntry.getSql() == null)
return;
StatisticManager.getInstance().push(backendSqlEntry);
}
}