Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A nullpointerexception occurs whenever a normal non /say chat message is said. The error is traced to the PlayerListener driver in the OnPlayerChat event handler. The error appears to come from the event being null this is a very annoying problem. #39

Closed
Lunaphied opened this issue Aug 9, 2012 · 4 comments

Comments

@Lunaphied
Copy link

No description provided.

@LadyCailin
Copy link
Member

Are you on the latest builds? Also, can you post the actual stacktrace if you are on the latest build?

@Lunaphied
Copy link
Author

I am on the latest builds I will get a stack trace soon. If I can have a
patched version that writes the stacktrace to a file that would be nice.
Also I would really like a better idea of how this plugin works I like the
plugin but it is super complex.

On Thursday, August 9, 2012, Layton Smith wrote:

Are you on the latest builds? Also, can you post the actual stacktrace if
you are on the latest build?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-7624056.

@Lunaphied
Copy link
Author

Sorry its a event exception but is caused by a null pointer exception

2012-08-10 10:17:03 [SEVERE] Could not pass event AsyncPlayerChatEvent to CommandHelper
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:830)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
        at net.minecraft.server.NetworkManager.i(NetworkManager.java:216)
        at net.minecraft.server.NetworkManager.c(NetworkManager.java:331)
        at net.minecraft.server.NetworkReaderThread.run(SourceFile:93)
Caused by: java.lang.NullPointerException
        at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitPlayerListener.onPlayerChat(BukkitPlayerListener.java:49)
        at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
        ... 9 more

@LadyCailin
Copy link
Member

Chat has been changed about a million times, so I'm going to close this now, assuming it's been fixed. If not, please update the bug with a current stacktrace, and feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants