Should move the null check inside the addRoute() method. Then we just need to call addRoute().