mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-31 20:10:27 +00:00
Check handle for nullptr
Test: pass Bug: 37662706 Change-Id: Ie3ad92a5dc71eeea9aa9a26f0a6f94ae7aca3433
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user