Skip to content

Commit

Permalink
[Fix] Fixed exceptions with ACTIVITY_JOIN_REQUEST + null user icon
Browse files Browse the repository at this point in the history
  • Loading branch information
CDAGaming committed Jun 6, 2023
1 parent 70c0f82 commit 4624cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jagrosh/discordipc/IPCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ private void readPipe(final IPCClient instance) {
u.getAsJsonPrimitive("username").getAsString(),
u.getAsJsonPrimitive("discriminator").getAsString(),
Long.parseLong(u.getAsJsonPrimitive("id").getAsString()),
u.has("avatar") ? u.getAsJsonPrimitive("avatar").getAsString() : null
u.has("avatar") && u.get("avatar").isJsonPrimitive() ? u.getAsJsonPrimitive("avatar").getAsString() : null
);
listener.onActivityJoinRequest(instance, data.has("secret") ? data.getAsJsonObject("secret").getAsString() : null, user);
break;
Expand Down

0 comments on commit 4624cbc

Please sign in to comment.