diff options
author | 2014-09-08 18:59:09 -0700 | |
---|---|---|
committer | 2014-09-16 17:52:06 -0700 | |
commit | 1474f8864faafebc92ff79959bb5c698bd29b704 (patch) | |
tree | 7e60cb941b744698bb8bf40e81f50ff14c46e987 /libs/gui/LayerState.cpp | |
parent | 86aeb9ef154d7aa63c58cbe5be62e5b61d6ae5fa (diff) |
Don't check if this == NULL.
Entering a method with this == NULL is undefined behavior. Clang whines
about this.
Change-Id: Ibde628395ca10dfef0d2f59e81280576f104b83c
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index acdbd77161..498953f2ed 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -75,7 +75,7 @@ status_t ComposerState::read(const Parcel& input) { status_t DisplayState::write(Parcel& output) const { output.writeStrongBinder(token); - output.writeStrongBinder(surface->asBinder()); + output.writeStrongBinder(surface != NULL ? surface->asBinder() : NULL); output.writeInt32(what); output.writeInt32(layerStack); output.writeInt32(orientation); |