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

Commit f14e5a2f authored by Craig Mautner's avatar Craig Mautner
Browse files

Add empty ArrayList check.

Fixes bug 15768779.

Change-Id: I3e4c48aa0fff99025e9ba1725e3d1f3523749dbd
parent 6ba30b85
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4852,8 +4852,11 @@ public class WindowManagerService extends IWindowManager.Stub
        // Where to start adding?
        for (int taskNdx = 0; taskNdx < numTasks; ++taskNdx) {
            AppTokenList tokens = tasks.get(taskNdx).mAppTokens;
            int pos = findAppWindowInsertionPointLocked(tokens.get(0));
            final int numTokens = tokens.size();
            if (numTokens == 0) {
                continue;
            }
            int pos = findAppWindowInsertionPointLocked(tokens.get(0));
            for (int tokenNdx = 0; tokenNdx < numTokens; ++tokenNdx) {
                final AppWindowToken wtoken = tokens.get(tokenNdx);
                if (wtoken != null) {