diff options
author | JW Wang <wangchun@google.com> | 2020-03-30 10:19:36 +0800 |
---|---|---|
committer | JW Wang <wangchun@google.com> | 2020-03-30 10:19:36 +0800 |
commit | 28310268d9051b1354eb33035818e2b1651efa4b (patch) | |
tree | ee87e68bd3beb4af542890ef00639c0e6522791d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9cb593704e34330eaa051865358f34d177b740c0 (diff) |
Fix an NPE in WatchdogEventLogger#stop
See b/152550404#comment15.
https://cs.corp.google.com/android/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/StagedRollbackTest.java?rcl=0b9230489ead3a2ad328d46a47194cfa9dffd25c&l=86
My theory is that somehow #setUp throws before calling mLogger.start()
and then mLogger.stop() runs into an NPE.
Let's add a null-check in the hope that the actual root cause will stand
out.
Bug: 152550404
Test: atest StagedRollbackTest
Change-Id: Ifd323e6a8707a2de19d03ecbe536feacdbb4e9c6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions