bugfix: fix segmentation fault in Robot Mitigation

fix segmentation fault when Robot Mitigation sends alert logs

Signed-off-by: paulyang <y_y@neusoft.com>