[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 0f84b36f4f
commit 1e2fdaed20

View File

@@ -228,6 +228,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);
}
}