speculative fix of null-deference on CancelDragDrop
The bug report looks like WindowTree calls CancelDragLoop with nullptr. This means GetWindowByTransportId returns nullptr -- I guess the window is gone during the drag&drop loop. Other methods in WindowTree (e.g. PerformDragDrop and PerformWindowMove) check this validity, so this CL adds the same validation on CancelDragDrop. Bug: 934260 Test: none Change-Id: I99fcc370b95ed49deee3ff031ed262ff6b52a655 Reviewed-on: https://chromium-review.googlesource.com/c/1481857 Commit-Queue: Jun Mukai <mukai@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#634451}
Showing
Please register or sign in to comment