commit | 45f06460e9aeadadad27e6c87817940cd96128ef | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Mon Nov 21 16:08:34 2011 -0800 |
committer | Amith Yamasani <yamasani@google.com> | Mon Nov 21 16:08:34 2011 -0800 |
tree | 0599a993609e925498757dae68eef8763ff5bd87 | |
parent | 85c7394836843b2cbfa2b51504448794a6071b3a [diff] |
Fix an NPE on overflow in BatteryStats history. When the battery stats buffer hits 128KB, it hits a code path that causes an NPE. This can happen depending on usage and charging patterns and manifest in bad ways, such as failure to boot up or random crashes, or refusing to go to sleep. Bug: 5645407 Change-Id: I21d5d189431f776f25bcb7d598c86e598ad8cb17