make sure the sm is not NULL before send event in vsfshell