block cannot be null here, thanks findbugs.