Skip to content

table index is nil #12

Description

@subnetmarco

When executing this code:

local Mediator = require("mediator")()

Mediator:subscribe("hello", function(data) print(data) end)

I have this issue:

usr/local/share/lua/5.1/mediator.lua:72: table index is nil
stack traceback:
    /usr/local/share/lua/5.1/mediator.lua:72: in function 'addChannel'
    /usr/local/share/lua/5.1/mediator.lua:81: in function 'getChannel'
    /usr/local/share/lua/5.1/mediator.lua:135: in function 'getChannel'
    /usr/local/share/lua/5.1/mediator.lua:142: in function 'subscribe'
    test.lua:3: in main chunk
    [C]: ?

With version 1.1.2-0 installed from LuaRocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions