AddOns\NDui\Core\Functions.lua:527: attempt to index local 'self' (a nil value)
Count: 3
Call Stack:
[string "@FrameXML\RestrictedFrames.lua"]:670: in function <FrameXML\RestrictedFrames.lua:668>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "@FrameXML\RestrictedFrames.lua"]:674: in function <FrameXML\RestrictedFrames.lua:673>
[string "@FrameXML\RestrictedFrames.lua"]:812: in function `CallMethod'
[string "    local header = self:GetParent()
    local frames = table.new()
    table.insert(frames, self)
    self:GetChildList(frames)
    for i = 1, #frames do
      local frame = frames
      local unit
      -- There's no need to do anything on frames with onlyProcessChildren
      if(not frame:GetAttribute('oUF-onlyProcessChildren')) then
        RegisterUnitWatch(frame)
        -- Attempt to guess what the header is set to spawn.
        local groupFilter = header:GetAttribute('groupFilter')
        if(type(groupFilter) == 'string' and groupFilter:match('MAIN[AT]')) then
          local role = groupFilter:match('MAIN([AT])')
          if(role == 'T') then
            unit = 'maintank'
          else
            unit = 'mainassist'
          end
        elseif(header:GetAttribute('showRaid')) then
          unit = 'raid'        elseif(header:GetAttribute('showParty')) then          unit = 'party'        end        local headerType = header:GetAttribute('oUF-headerType')        local suffix = frame:GetAttribute('unitsuffix')        if(unit and suffix) then          if(headerType == 'pet' and suffix == 'target') then            unit = unit .. headerType .. suffix          else            unit = unit .. suffix          end        elseif(unit and headerType == 'pet') then          unit = unit .. headerType        end        frame:SetAttribute('*type1', 'target')        frame:SetAttribute('*type2', 'togglemenu')        frame:SetAttribute('oUF-guessUnit', unit)      end      local body = header:GetAttribute('oUF-initialConfigFunction')      if(body) then        frame:Run(body, unit)      end    end    header:CallMethod('styleFunction', self:GetName())    local clique = header:GetFrameRef('clickcast_header')    if(clique) then      clique:SetAttribute('clickcast_新的报错