AceConfigDialog-3.0.lua:184: attempt to index local 'option' (a nil value) #672


Open
  • Nihlathak created this issue Nov 9, 2024
    Ace3-r1354-alpha
    AceConfigDialog-3.0.lua
    #line 1495 group could be nil
    I hope this bug can be fixed as soon as possible, thanks for all ACE3 Members!
     
    local function TreeOnButtonEnter(widget, event, uniquevalue, button)
        local user = widget:GetUserDataTable()
        if not user then return end
        local options = user.options
        local option = user.option
        local path = user.path
        local appName = user.appName
        local tooltip = AceConfigDialog.tooltip

        local feedpath = new()
        for i = 1, #path do
            feedpath[i] = path[i]
        end

        BuildPath(feedpath, ("\001"):split(uniquevalue))
        local group = options
        for i = 1, #feedpath do
            if not group then return end
            group = GetSubOption(group, feedpath[i])

            -- Issue: AceConfigDialog-3.0.lua:184: attempt to index local 'option' (a nil value)
            if not group then
                print(uniquevalue, feedpath[i]) -- group could be nil, the issue occurrence.
            end
     end

        local name = GetOptionsMemberValue("name", group, options, feedpath, appName)
        local desc = GetOptionsMemberValue("desc", group, options, feedpath, appName)

        tooltip:SetOwner(button, "ANCHOR_NONE")
        tooltip:ClearAllPoints()
        if widget.type == "TabGroup" then
            tooltip:SetPoint("BOTTOM",button,"TOP")
        else
            tooltip:SetPoint("LEFT",button,"RIGHT")
        end

        tooltip:SetText(name, 1, .82, 0, true)

        if type(desc) == "string" then
            tooltip:AddLine(desc, 1, 1, 1, true)
        end

        tooltip:Show()
    end
     
    It appears that ElvUI has encountered a similar issue: https://github.com/tukui-org/ElvUI/issues/1158
     
    BugSack:
    -- local 'option' (a nil value)
    14x ...nfig-3.0/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua:184: attempt to index local 'option' (a nil value)
    [string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:184: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:164>
    [string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:1498: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1477>
    [string "=[C]"]: ?
    [string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
    [string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
    [string "@Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TreeGroup.lua"]:202: in function <...ce3/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua:200>

     

    -- local 'group' (a nil value)
    2x ...nfig-3.0/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua:1602: attempt to index local 'group' (a nil value)
    [string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:1602: in function `FeedGroup'
    [string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:1567: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1551>
    [string "=[C]"]: ?
    [string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
    [string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
    [string "@Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TreeGroup.lua"]:508: in function `SetSelected'
    [string "@Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TreeGroup.lua"]:185: in function <...ce3/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua:181>
  • Nihlathak edited description Nov 9, 2024
  • Nihlathak edited description Nov 9, 2024
  • Nihlathak edited description Nov 9, 2024
  • Nihlathak edited description Nov 9, 2024
  • Nihlathak edited description Nov 9, 2024
  • Nihlathak edited description Nov 9, 2024

To post a comment, please login or register a new account.