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

Commit b551c6d9 authored by Andreas Huber's avatar Andreas Huber
Browse files

Fix wfd crash after disconnect due to null pointer exception in

WindowManagerService.java

Change-Id: I661f9c73d481da88661793ad529c0807cf74a5e7
parent 0bd6a395
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);