Add a test for emptiness before accessing either mTaskHistory[0] or TaskRecord.mActivities[0]. This will keep us from hitting IndexOutOfBoundsException. Fixes bug 10789624. Change-Id: If726df888a2c8b393788793b6220a6bffe2df883
Add a test for emptiness before accessing either mTaskHistory[0] or TaskRecord.mActivities[0]. This will keep us from hitting IndexOutOfBoundsException. Fixes bug 10789624. Change-Id: If726df888a2c8b393788793b6220a6bffe2df883