NPE on Message Create Packet for News Channel
See original GitHub issueThis is on snapshot version 3.3.1 (as of Monday, 6/14/2021)
[14 Jun 2021 11:35:16] [Javacord - Handlers Processor] [o.j.core.util.gateway.PacketHandler:WARN ] > Couldn't handle packet of type MESSAGE_CREATE. Please contact the developer! (packet: {"type":12,"tts":false,"timestamp":"2021-06-14T09:35:16.194000+00:00","pinned":false,"message_reference":{"guild_id":"768263169432223745","channel_id":"797215861114404973"},"mentions":[],"mention_roles":[],"mention_everyone":false,"member":{"roles":["853619134821957642","853825275955904532","853825313482342450"],"premium_since":null,"pending":false,"nick":null,"mute":false,"joined_at":"2021-06-13T08:36:11.507000+00:00","is_pending":false,"hoisted_role":"853619134821957642","deaf":false,"avatar":null},"id":"853930582765207582","flags":0,"embeds":[],"edited_timestamp":null,"content":"9Community #announcements","components":[],"channel_id":"REDACTED","author":{"username":"REDACTED","public_flags":0,"id":"REDACTED","discriminator":"0161","avatar":"c8df6996d4f1176085c236c54eb2758e"},"attachments":[],"guild_id":"REDACTED"})
java.lang.NullPointerException: null
at org.javacord.core.entity.message.MessageImpl.<init>(MessageImpl.java:236)
at org.javacord.core.DiscordApiImpl.lambda$getOrCreateMessage$29(DiscordApiImpl.java:1105)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.javacord.core.DiscordApiImpl.getOrCreateMessage(DiscordApiImpl.java:1105)
at org.javacord.core.util.handler.message.MessageCreateHandler.handle(MessageCreateHandler.java:66)
at org.javacord.core.util.handler.message.MessageCreateHandler.handle(MessageCreateHandler.java:59)
at org.javacord.core.util.gateway.PacketHandler.lambda$handlePacket$0(PacketHandler.java:51)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Beautified JSON:
{
"type": 12,
"tts": false,
"timestamp": "2021-06-14T09:35:16.194000+00:00",
"pinned": false,
"message_reference": {
"guild_id": "768263169432223745",
"channel_id": "797215861114404973"
},
"mentions": [],
"mention_roles": [],
"mention_everyone": false,
"member": {
"roles": [
"853619134821957642",
"853825275955904532",
"853825313482342450"
],
"premium_since": null,
"pending": false,
"nick": null,
"mute": false,
"joined_at": "2021-06-13T08:36:11.507000+00:00",
"is_pending": false,
"hoisted_role": "853619134821957642",
"deaf": false,
"avatar": null
},
"id": "853930582765207582",
"flags": 0,
"embeds": [],
"edited_timestamp": null,
"content": "REDACTED",
"components": [],
"channel_id": "REDACTED",
"author": {
"username": "REDACTED",
"public_flags": 0,
"id": "REDACTED",
"discriminator": "0161",
"avatar": "c8df6996d4f1176085c236c54eb2758e"
},
"attachments": [],
"guild_id": "REDACTED"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
java - What is a NullPointerException, and how do I fix it?
The NullPointerException (NPE) typically occurs when you declare a variable but did not create an object and assign it to the variable before...
Read more >Message | Android Developers
Flag for use with writeToParcel(Parcel, int) : the object being written is a return value, ... Return a new Message instance from the...
Read more >When an MQTT connection dies, it fails with a NPE and never ...
Assuming there is successfully connected MQTT connection, which then just dies. In the log you can see a NPE (`NullPointerException') and the client...
Read more >PacketCable and PacketCable Multimedia - Cisco Content Hub
This document describes how to configure the Cisco CMTS for PacketCable and PacketCable Multimedia operations over an existing DOCSIS (1.1and later versions) ...
Read more >Contribution Number: NPF2002.429.05 Working Group: Hardware ...
Messaging covers NPE-to-NPE communications within a single network element, ... MUST minimally include conveyance-level packet length as well as packet ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Typo, I meant 3.3.1. Apologies~
If I remember correctly Javacord assumes that the guild_ids are the same