diff options
author | Tatenda Chipeperekwa <tatendac@codeaurora.org> | 2015-06-11 18:57:28 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-06-11 18:57:28 +0000 |
commit | c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba (patch) | |
tree | bfc271bbb08ad73f09f4edf0b39e85af32c2ad1c /services | |
parent | 7ba4368100c10e0c15f5f92c097fcf7fc32eed2a (diff) | |
parent | 23e16bb5dae277cd20a739ca56553ae931c43ccf (diff) | |
download | frameworks_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.cpp | 2 |
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; } |