crs is a local variable and is null until you instantiate it. So you don't need to check if it's null here.