avoid nullpointerexception when failed to get back voting result.

avoid nullpointerexception when failed to get back voting result.

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>