Check handle for nullptr

Test: pass
Bug: 37662706
Change-Id: Ie3ad92a5dc71eeea9aa9a26f0a6f94ae7aca3433
This commit is contained in:
Steven Moreland
2017-05-23 16:06:03 -07:00
parent 01f9636200
commit 6e8f5ea639

View File

@@ -124,7 +124,7 @@ static void getModemLogs(int fd)
// 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();
}