Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac74c517 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Fix wfd crash after disconnect due to null pointer exception in"

parents 305615e5 b551c6d9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -10757,7 +10757,11 @@ public class WindowManagerService extends IWindowManager.Stub
        final DisplayContent displayContent = getDisplayContentLocked(displayId);
        if (displayContent != null) {
            mDisplayContents.delete(displayId);

            if (displayContent.mTapInputChannel != null) {
                displayContent.mTapInputChannel.dispose();
            }

            WindowList windows = displayContent.getWindowList();
            while (!windows.isEmpty()) {
                final WindowState win = windows.get(windows.size() - 1);