commit | 3b1b8affbda97b8414c3015648d7804609f727e6 | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Fri Mar 16 17:37:33 2018 -0700 |
committer | Garfield Tan <xutan@google.com> | Fri Mar 16 18:09:24 2018 -0700 |
tree | 50ed78d2eb16896ddbac28e5a19aaaf559812286 | |
parent | 6e01adc9c1f22208b3d2151e7662e6defbc1d60f [diff] |
Add a null check in case device disappears. This is a race condition possible when the caller get display IBinder the display is still here, but when it tries to take screenshot with that display, the display disappeared before it. Bug: 75324434 Test: smoke tests on walleye. This is a race so hard to verify. Change-Id: I5a107862e0b442840038b0956736e9661f556a23