Skip to content

initGui NPE #5

@JackOfNoneTrades

Description

@JackOfNoneTrades
public class GuiChatTC extends GuiChat {
[...]
@Override
    public void initGui() {
[...]
if (this.tc.enabled()) {
    if (this.scrollBar == null)
        this.scrollBar = new ChatScrollBar();
    for (ChatChannel chan : this.tc.channelMap.values()) {
        this.buttonList.add(chan.tab);
    }
}
else {
    this.buttonList.add(this.tc.channelMap.get("*").tab);
}

this.tc.channelMap.get("*") is sometimes null and results in an NPE when tabbychat is disabled in its settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions