Merge "sf: Add a NULL check in getDisplayConfigs"

This commit is contained in:
Dan Stoza 2015-06-11 19:31:43 +00:00 committed by Gerrit Code Review
commit 85e271d051

View File

@ -546,7 +546,7 @@ bool SurfaceFlinger::authenticateSurfaceTexture(
status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display, status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
Vector<DisplayInfo>* configs) { Vector<DisplayInfo>* configs) {
if (configs == NULL) { if ((configs == NULL) || (display.get() == NULL)) {
return BAD_VALUE; return BAD_VALUE;
} }