fix exception when communication obj is null