commit | be2d7dd4f038497e55384b9df4a1152b34cd95bc | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Mar 14 12:15:56 2018 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Mar 16 19:49:13 2018 +0000 |
tree | 7bfb214f956adfd2672507f10c5f11018d5127b3 | |
parent | 402085b98c82dae9c223b6b23e05ea24bcd5d054 [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. (cherrypick of d05127172ce1f113230b1774119b6d54475dc158) Bug: 74568776 Test: calling dumpstate early in the boot sequence no longer crashes Change-Id: I6c80f38dcf7890e607ce73e25a8ec0e16ba92586 Merged-In: I6c80f38dcf7890e607ce73e25a8ec0e16ba92586