commit | 58959343dbdb6157fa5f5463262d4842b8954353 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu Oct 07 14:57:04 2010 -0700 |
committer | Mathias Agopian <mathias@google.com> | Thu Oct 07 14:57:04 2010 -0700 |
tree | 477b061d1392124f60f2b044c81fecd58ed716d9 | |
parent | f5c9adb410d6c24f3d391034eae0708eb68b578a [diff] |
Fix a null dereference Change-Id: I3df446b90c1607782778749de7ba0f8c00698c33
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index ff887e4..4af274b 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -84,7 +84,9 @@ status_t HWComposer::commit() const { int err = mHwc->set(mHwc, mDpy, mSur, mList); - mList->flags &= ~HWC_GEOMETRY_CHANGED; + if (mList) { + mList->flags &= ~HWC_GEOMETRY_CHANGED; + } return (status_t)err; }