summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTatenda Chipeperekwa <tatendac@codeaurora.org>2015-06-11 18:57:28 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-11 18:57:28 +0000
commitc1d4662f0e596021e0d8360cd1c5d213c3c8c4ba (patch)
treebfc271bbb08ad73f09f4edf0b39e85af32c2ad1c /services
parent7ba4368100c10e0c15f5f92c097fcf7fc32eed2a (diff)
parent23e16bb5dae277cd20a739ca56553ae931c43ccf (diff)
downloadframeworks_native-c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba.zip
frameworks_native-c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba.tar.gz
frameworks_native-c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba.tar.bz2
am 23e16bb5: sf: Add a NULL check in getDisplayConfigs
* commit '23e16bb5dae277cd20a739ca56553ae931c43ccf': sf: Add a NULL check in getDisplayConfigs
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index a426ad6..a332cda 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -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;
}