commit | 1e27b08c1c96926f88c782b047214e09f29d57d2 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Thu Mar 22 15:36:42 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Sat Mar 24 00:15:40 2018 +0000 |
tree | 16805adc5604872d4f603f72abcc1673ab315444 | |
parent | 14c461a47806524f7bb51273df7d45fb8648b4b7 [diff] |
Avoid crashing in RunDumpsysProto when not zipping When a .zip file is not being generated, RunDumpsysProto will segfault while trying to get the last ZipWriter::FileEntry because ds.zip_writer_ is nullptr. This change avoids running the method altogether if not zipping. Bug: 76120715 Test: dumpsys Change-Id: I184dd7b72564408e313f32f3045e2fe0e4521b5b Merged-In: I184dd7b72564408e313f32f3045e2fe0e4521b5b