Guard against NPE

Test: build
Bug: 161166697
Change-Id: I06d7a81b522fe372a1a610791e1598d205e4339c
1 file changed