am 85e271d0
: Merge "sf: Add a NULL check in getDisplayConfigs"
* commit '85e271d051770fdd5bb1bb017255f735cbd45459': sf: Add a NULL check in getDisplayConfigs
This commit is contained in:
commit
25a83393e6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user