commit | d05127172ce1f113230b1774119b6d54475dc158 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Mar 14 12:15:56 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Wed Mar 14 14:42:24 2018 -0700 |
tree | cfeaea59bee74c45ff0467622ad07a70fd5a972c | |
parent | 9a34c1a968d70bd8041612ba26de2600455a7cbd [diff] |
Avoid crashing when a directory does not exist This change adds a null-check for the DIR* object to avoid a crash when the directory cannot be opened for any reason. Bug: 74568776 Test: calling dumpstate early in the boot sequence no longer crashes Change-Id: I6c80f38dcf7890e607ce73e25a8ec0e16ba92586