Why would the server be null? Where else is this null check implemented?