mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-10 10:12:17 +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)
|
mqp = filterQueryPieceBySQL(mqp, querySQLInBytes)
|
||||||
if mqp != nil {
|
if mqp == nil {
|
||||||
mqp.GenerateJsonBytes()
|
return nil
|
||||||
}
|
}
|
||||||
|
mqp.GenerateJsonBytes()
|
||||||
return mqp
|
return mqp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user