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

Commit cb852390 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sf: Add a NULL check in getDisplayConfigs"

parents b801c8ae e9d5fa8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ bool SurfaceFlinger::authenticateSurfaceTexture(

status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
        Vector<DisplayInfo>* configs) {
    if (configs == NULL) {
    if ((configs == NULL) || (display.get() == NULL)) {
        return BAD_VALUE;
    }