Add null check.

Identification: none
Change-Id: I7b460717ee0963316fe53635647cb2bf6d37ac84