* commit 'c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba': sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
commit
0abd853a68
@ -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