Previously we read from componentClass after allocating the array. Bug: 21783443 (cherry picked from commit 52ea33b1) Change-Id: I5283982edab479434e27416509e1436b4176fe01