am 23e16bb5
: sf: Add a NULL check in getDisplayConfigs
* commit '23e16bb5dae277cd20a739ca56553ae931c43ccf': sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
commit
c1d4662f0e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user