Fix the IndexOutOfBoundsException

Bug: 276460284
Test: build pass
Change-Id: If70bd4624b9b94aafa0930f0deba106cff5a2212
2 files changed