Exception thrown: 'leagueObj.divisions' is null or not an object