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

NPE in GuildCreateHandler #82

Closed
MedicOP opened this issue Aug 26, 2017 · 3 comments
Closed

NPE in GuildCreateHandler #82

MedicOP opened this issue Aug 26, 2017 · 3 comments
Labels
🐛 bug Something isn't working

Comments

@MedicOP
Copy link

MedicOP commented Aug 26, 2017

java.lang.NullPointerException
        at de.btobastian.javacord.entities.impl.ImplServer.<init>(ImplServer.java:187)
        at de.btobastian.javacord.utils.handler.server.GuildCreateHandler.handle(GuildCreateHandler.java:59)
        at de.btobastian.javacord.utils.PacketHandler$1.run(PacketHandler.java:71)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
@MedicOP
Copy link
Author

MedicOP commented Aug 26, 2017

The GUILD_CREATE packet does not list offline members if the server is large (>=250 members).

The user is listed in the voice_states array, but not in the members array. (The user probably has their status set to Invisible)

Members should be loaded manually using https://discordapp.com/developers/docs/topics/gateway#gateway-request-guild-members if the large boolean == true

@MedicOP MedicOP changed the title NPE NPE in GuildCreateHandler Aug 26, 2017
@Bastian
Copy link
Member

Bastian commented Aug 26, 2017

Thank you for reporting. :-)

Bastian added a commit that referenced this issue Sep 5, 2017
@Bastian Bastian added the 🐛 bug Something isn't working label Sep 5, 2017
@Bastian
Copy link
Member

Bastian commented Sep 5, 2017

Should be fixed now.

@Bastian Bastian closed this as completed Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants