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

Commit 1b89fe0b authored by Naseer Ahmed's avatar Naseer Ahmed Committed by Android Git Automerger
Browse files

am ff520bb9: am 7aa0c47e: sf: Add a NULL check in getDisplayConfigs

* commit 'ff520bb9':
  sf: Add a NULL check in getDisplayConfigs
parents 001ed445 ff520bb9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -507,6 +507,9 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
        return BAD_VALUE;
    }

    if (!display.get())
        return NAME_NOT_FOUND;

    int32_t type = NAME_NOT_FOUND;
    for (int i=0 ; i<DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES ; i++) {
        if (display == mBuiltinDisplays[i]) {