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

Commit 3949f664 authored by Dan Stoza's avatar Dan Stoza Committed by Gerrit Code Review
Browse files

Merge "SurfaceFlinger: Fix null pointer exception"

parents 5fec7915 24a42e9f
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -617,7 +617,11 @@ status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
}
}


int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
    return getDisplayDevice(display)->getActiveConfig();
    sp<DisplayDevice> device(getDisplayDevice(display));
    if (device != NULL) {
        return device->getActiveConfig();
    }
    return BAD_VALUE;
}
}


void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {
void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {