commit | be9cbb12e93c521ff0ef256658422720f5c3f55e | [log] [tgz] |
---|---|---|
author | Ruchi Kandoi <kandoiruchi@google.com> | Wed Jul 02 17:47:40 2014 -0700 |
committer | Ruchi Kandoi <kandoiruchi@google.com> | Tue Jul 08 00:42:09 2014 +0000 |
tree | fb012a54cc9bb084e9c3a031f5ca6bc8ddbc4456 | |
parent | b5e05cffccc2ca1ce85ce9952b6c6845b46aa5c7 [diff] |
BatteryStats: Adds an additional condition to avoid ArrayIndexOutOfBounds. This change takes care of the case when the length of the array is 0. Bug: 16039301 Change-Id: Ideb3ccc723c5d720069760aeedae8abb91c6420d