Merge "Add null checks to WindowState.getStack() calls." into lmp-dev