Skip to content

Commit

Permalink
fix ranking NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldRenard committed Nov 23, 2019
1 parent 91fd396 commit 70927ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RankCommand protected constructor() : MentionableCommand(true, true) {
content: String): Boolean {
contextService.queue(event.guild, event.channel.sendTyping()) queue@{ _ ->
val member = reference.localMember
val info = rankingService.getRankingInfo(event.guild.idLong, reference.id)!!
val info = rankingService.getRankingInfo(event.guild.idLong, reference.id) ?: return@queue
val config = rankingConfigService.get(event.guild)

val self = event.guild.selfMember
Expand Down

0 comments on commit 70927ff

Please sign in to comment.