Merge "bootstat: crash when parsing ro.boot.boottime"

This commit is contained in:
Treehugger Robot 2019-02-08 23:50:42 +00:00 committed by Gerrit Code Review
commit c1fd33546e

View file

@ -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)) {