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

Commit 0abd853a authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa Committed by Android Git Automerger
Browse files

am c1d4662f: am 23e16bb5: sf: Add a NULL check in getDisplayConfigs

* commit 'c1d4662f':
  sf: Add a NULL check in getDisplayConfigs
parents 586ffb0a c1d4662f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,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;
    }