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.
this.tc.channelMap.get("*")is sometimes null and results in an NPE when tabbychat is disabled in its settings.