Merge "bootstat: crash when parsing ro.boot.boottime"
This commit is contained in:
commit
c1fd33546e
1 changed files with 1 additions and 0 deletions
|
@ -1019,6 +1019,7 @@ const BootloaderTimingMap GetBootLoaderTimings() {
|
|||
auto stageTimingValues = android::base::Split(stageTiming, ":");
|
||||
DCHECK_EQ(2U, stageTimingValues.size());
|
||||
|
||||
if (stageTimingValues.size() < 2) continue;
|
||||
std::string stageName = stageTimingValues[0];
|
||||
int32_t time_ms;
|
||||
if (android::base::ParseInt(stageTimingValues[1], &time_ms)) {
|
||||
|
|
Loading…
Reference in a new issue