am 7aa0c47e
: sf: Add a NULL check in getDisplayConfigs
* commit '7aa0c47e4205c6fca136c38f272d911c25c8a8fa': sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
commit
ff520bb938
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user