summaryrefslogtreecommitdiff
path: root/libs/ui/DebugUtils.cpp
diff options
context:
space:
mode:
author Luis Hector Chavez <lhchavez@google.com> 2018-03-22 15:36:42 -0700
committer Luis Hector Chavez <lhchavez@google.com> 2018-03-24 00:15:40 +0000
commit1e27b08c1c96926f88c782b047214e09f29d57d2 (patch)
tree16805adc5604872d4f603f72abcc1673ab315444 /libs/ui/DebugUtils.cpp
parent14c461a47806524f7bb51273df7d45fb8648b4b7 (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
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions