Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d738733 authored by Brian Duddie's avatar Brian Duddie Committed by Anthony Stange
Browse files

Fix NPD in GrallocWrapper

Avoid dereferencing null if mapper service is not available.

Bug: 136736906
Test: run VtsHalSensorsV2_0TargetTest
Change-Id: I3cf2a9f152d8f1737cb5a94356e252d54156c716
Merged-In: I3cf2a9f152d8f1737cb5a94356e252d54156c716
(cherry picked from commit ccbcaaee)
parent 27e5de8e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");
    }
}