Shunshun94 / discord-bcdicebot

BCDice bot for Discord
GNU General Public License v3.0
20 stars 16 forks source link

bcdice help SYSTEM_NAME でクラッシュ #79

Closed h-mikisato closed 3 years ago

h-mikisato commented 3 years ago

bcdice help SwordWorld2.5 と入力したところ、以下のようなスタックトレースを出力しました。他の存在するシステム名でも同様で、逆に存在しないシステム名を入力した場合は正しく System 'hoge' is not found と出力されます。

2021-01-26 01:00:11.655+0900 ERROR org.javacord.core.util.event.EventDispatcherBase Unhandled exception in a listener thread for (Server Name)! {shard=0}
 java.lang.NullPointerException
        at com.hiyoko.discord.bot.BCDice.dto.SystemInfo.<init>(SystemInfo.java:30)
        at com.hiyoko.discord.bot.BCDice.DiceClient.BCDiceV2Client.getSystemInfo(BCDiceV2Client.java:197)
        at com.hiyoko.discord.bot.BCDice.BCDiceCLI.inputs(BCDiceCLI.java:321)
        at com.hiyoko.discord.bot.BCDice.BCDiceBot.lambda$null$3(BCDiceBot.java:79)
        at org.javacord.core.util.event.EventDispatcher.lambda$dispatchMessageCreateEvent$102(EventDispatcher.java:3636)
        at org.javacord.core.util.event.EventDispatcherBase.lambda$dispatchEvent$10(EventDispatcherBase.java:197)
        at org.javacord.core.util.event.EventDispatcherBase.lambda$checkRunningListenersAndStartIfPossible$17(EventDispatcherBase.java:265)
        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:834)
Shunshun94 commented 3 years ago

ありがとうございます!本件について修正し、2.0.2 として公開しました。