`uri` can never be null here either.