mattmess1221 / tabbychat

TabbyChat chat mod for Minecraft
20 stars 9 forks source link

Using macro mod inChat button crashes the game #12

Closed Brottweiler closed 9 years ago

Brottweiler commented 9 years ago

In inChat I have a button that runs /staff, when I press it, I crash:

Description: Unexpected error

java.lang.NullPointerException: Unexpected error
    at acs.tabbychat.core.TabbyChat.processChat(TabbyChat.java:681)
    at acs.tabbychat.core.GuiNewChatTC.func_146237_a(GuiNewChatTC.java:390)
    at acs.tabbychat.core.GuiNewChatTC.a(GuiNewChatTC.java:549)
    at acs.tabbychat.core.GuiNewChatTC.a(GuiNewChatTC.java:544)
    at bjb.a(SourceFile:474)
    at gj.a(SourceFile:38)
    at gj.a(SourceFile:9)
    at ej.a(SourceFile:174)
    at bje.e(SourceFile:212)
    at bao.p(SourceFile:1306)
    at bao.ak(SourceFile:774)
    at bao.f(SourceFile:728)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Brottweiler commented 9 years ago

Actually, no, I typed /staff manually and it crashed. To reproduce, connect to us.oc.tc and type /staff in the chat.

mattmess1221 commented 9 years ago

It didn't crash for me. Are you using the latest build?

Brottweiler commented 9 years ago

Yes, using the litemod from the latest commit. I just built it.

Brottweiler commented 9 years ago

TabbyChat-1.7.10-1.11.1.112-liteloader.litemod to be precise.

mattmess1221 commented 9 years ago

I'm using the same and it wasn't doing it for me. Do you have any other mods installed (Aside from macros)?

Brottweiler commented 9 years ago

I tested that by removing all mods except Tabbychat, I had the same issue.

I started building based on older commits, and if I use https://github.com/killjoy1221/tabbychat/commit/988f515c9801c4e1c98b854575cd52533ecaed53 I do not crash when typing /staff, but if I use https://github.com/killjoy1221/tabbychat/commit/9b2e0bd0805cdf7340c69b35b323f9c74974683b I crash.

Using TabbyChat-1.7.10-1.11.1.111-liteloader.litemod I do not crash.

Using TabbyChat-1.7.10-1.11.1.112-liteloader.litemod I do crash.

Brottweiler commented 9 years ago

Typing /friends to list my friends on the network also crashes me. This is what /staff and /friends outputs when I am using the 111 version:

image

image

Both of these, as you know, crashes me when I am in the 112 version.

mattmess1221 commented 9 years ago

It just doesn't make any sense. In the stack trace, it says it's crashing at a try block

mattmess1221 commented 9 years ago

Try it now.

Brottweiler commented 9 years ago

Seems to work!