am 23e16bb5: sf: Add a NULL check in getDisplayConfigs

* commit '23e16bb5dae277cd20a739ca56553ae931c43ccf':
  sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
Tatenda Chipeperekwa 2015-06-11 18:57:28 +00:00 committed by Android Git Automerger
commit c1d4662f0e

View File

@ -550,7 +550,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;
}