resolve crash when receive data is null