Map/WorldMapFilters_Shared.lua:40
Lua Code:
return self.modeVars.filters[self.mapFilterType][mapPinGroup]
My guess is that filters[self.mapFilterType] is nil there. If you check ./ingame/map/worldmap.lua +6238, you'll see there aren't filters[mapFilterType] tables for every mapMode/mapFilterType combination.
Edit: specifically, MAP_MODE_AVA_RESPAWN doesn't have filters for MAP_FILTER_TYPE_AVA_IMPERIAL
Edit2: Can't test it myself
Lua Code:
CALLBACK_MANAGER:RegisterCallback("OnWorldMapSavedVarsReady", function(savedVars)
local filters = savedVars[MAP_MODE_AVA_RESPAWN].filters
if not filters[MAP_FILTER_TYPE_AVA_IMPERIAL] then
filters[MAP_FILTER_TYPE_AVA_IMPERIAL] = {}
end
end)