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

Commit d426d955 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 39225289: Add empty ArrayList check.

* commit '392252897674c303421b9b2051e20d6bd1767c46':
  Add empty ArrayList check.
parents bbbcc2e9 f14e5a2f
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) {