Avoid potential NPE

Change-Id: I04af099065e52405a512b5e5f19be9fa41baa4db