mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 12:07:58 +00:00
Fix NPD in GrallocWrapper
Avoid dereferencing null if mapper service is not available. Bug: 135638664 Test: run VtsHalSensorsV2_0TargetTest Change-Id: I3cf2a9f152d8f1737cb5a94356e252d54156c716
This commit is contained in:
@@ -33,8 +33,7 @@ void GrallocWrapper::init() {
|
||||
mMapper = mapper2::IMapper::getService();
|
||||
if (mMapper == nullptr) {
|
||||
ALOGE("Failed to get mapper service");
|
||||
}
|
||||
if (mMapper->isRemote()) {
|
||||
} else if (mMapper->isRemote()) {
|
||||
ALOGE("Mapper is not in passthrough mode");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user