Logic failure. Field "window" will be never be null.