commit | 5aec6412704477b7c1ce50c8e5739c9969ed8a1b | [log] [tgz] |
---|---|---|
author | Marissa Wall <marissaw@google.com> | Wed Nov 14 11:49:18 2018 -0800 |
committer | Marissa Wall <marissaw@google.com> | Mon Nov 26 10:07:04 2018 -0800 |
tree | d8ee5877a579b361e722471c841807b726bc0524 | |
parent | dc2e1d7c65755284e800945664c29e3e539fffb8 [diff] [blame] |
blast: check for buffer before dumping format Check if a BLAST buffer is null before trying to dump its format. Test: dumpsys SurfaceFlinger Bug: 80477568 Change-Id: Id4ef1891bef25a313e42942c6a8a3cdfc6d4c09c
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp index 425f5c7..5ffd8ad 100644 --- a/services/surfaceflinger/BufferStateLayer.cpp +++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -336,6 +336,9 @@ } PixelFormat BufferStateLayer::getPixelFormat() const { + if (!mActiveBuffer) { + return PIXEL_FORMAT_NONE; + } return mActiveBuffer->format; }