diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-24 20:02:03 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-24 20:02:03 +0000 |
commit | 0c3fa6a15f097588be3338492f5abff40c6d2575 (patch) | |
tree | 8269ca8aaac0661db16171acbd4076fac98ed86b | |
parent | 7f01148a39c7990dab48f7a62fc2799cfb524837 (diff) | |
parent | c50751aaf056fea8c258db55322cbd491e6a650d (diff) | |
download | bullhead-0c3fa6a15f097588be3338492f5abff40c6d2575.tar.gz |
release-request-e81235f1-b2b4-4de1-b974-255760176f06-for-git_oc-mr1-release-4040405 snap-temp-L68200000067456736
Change-Id: I277e08af0130abc2942849c56b1d8b5a333ccc96
-rw-r--r-- | dumpstate/DumpstateDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index e349679..7ce66a1 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -34,7 +34,7 @@ namespace implementation { // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow. Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { - if (handle->numFds < 1) { + if (handle == nullptr || handle->numFds < 1) { ALOGE("no FDs\n"); return Void(); } |