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

Commit b275b4dc authored by Dan Stoza's avatar Dan Stoza Committed by Android Git Automerger
Browse files

am 3949f664: Merge "SurfaceFlinger: Fix null pointer exception"

* commit '3949f664':
  SurfaceFlinger: Fix null pointer exception
parents fcf1689c 3949f664
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -620,7 +620,11 @@ status_t SurfaceFlinger::getDisplayStats(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) {