Skip to content

Commit

Permalink
Fix issue with unexpected null in MessageReactionAddEvent#getUser
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Aug 14, 2020
1 parent 995495c commit 2b2d8cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public User getUser()
{
return issuer == null && isFromType(ChannelType.PRIVATE)
? getPrivateChannel().getUser() // this can't be the self user because then issuer would be nonnull
: null;
: issuer;
}

/**
Expand Down

0 comments on commit 2b2d8cd

Please sign in to comment.