mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-07 17:09:52 +08:00
fix bug of nil pointer
This commit is contained in:
@@ -302,9 +302,10 @@ func (ms *MysqlSession) GenerateQueryPiece() (qp model.QueryPiece) {
|
||||
}
|
||||
|
||||
mqp = filterQueryPieceBySQL(mqp, querySQLInBytes)
|
||||
if mqp != nil {
|
||||
mqp.GenerateJsonBytes()
|
||||
if mqp == nil {
|
||||
return nil
|
||||
}
|
||||
mqp.GenerateJsonBytes()
|
||||
return mqp
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user