We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f1b8a commit 145705dCopy full SHA for 145705d
1 file changed
mhdf-bot/src/main/java/cn/chengzhiya/mhdfbot/bot/onebot/MHDFOneBot.java
@@ -145,6 +145,7 @@ public AbstractMessageEvent getMsg(Long messageId) {
145
146
JSONObject data = Objects.requireNonNull(JSONObject.parseObject(this.httpClient.post("get_msg", body.toString())))
147
.getJSONObject("data");
148
+ if (data == null) return null;
149
150
return switch (data.getString("message_type")) {
151
case "group" -> new GroupMessageEvent(data);
0 commit comments