Merge "sf: Add a NULL check in getDisplayConfigs"
This commit is contained in:
commit
85e271d051
@ -546,7 +546,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user