am ff520bb9: am 7aa0c47e: sf: Add a NULL check in getDisplayConfigs
* commit 'ff520bb93812f9892da526ace81efce9b0872503': sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
commit
1b89fe0b81
|
@ -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