commit | 3e1a18ac6d9a29a987514b4fe03371336184b1cc | [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 | 8294e1b0e5fd8e486c10d6053652fe219207884a | |
parent | 367a39fbaa5ced901463c7800c960ff75bbcaf57 [diff] [blame] |
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; }