Check to prevent index out of bounds exception

Bug: 8368385
Change-Id: I4246f3a70039288c91bf084cac4e2db631ca0a4a
1 file changed