Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

コンソールで本文なしのメールを送信しようとするとエラーが起こる #56

Closed
ucchyocean opened this issue Aug 1, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@ucchyocean
Copy link
Owner

commented Aug 1, 2015

Exception の内容は次の通り


[22:28:57] [Server thread/WARN]: Unexpected exception while parsing console command "mail send"
org.bukkit.command.CommandException: Unhandled exception executing command 'mail' in plugin UndineMailer v1.4.11
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:619) ~[spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:605) [spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:371) [spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:336) [spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:628) [spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:536) [spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_05]
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_05]
    at java.util.ArrayList.get(Unknown Source) ~[?:1.8.0_05]
    at org.bitbucket.ucchy.undine.MailData.getInboxSummary(MailData.java:849) ~[?:?]
    at org.bitbucket.ucchy.undine.MailManager.sendNewMail(MailManager.java:276) ~[?:?]
    at org.bitbucket.ucchy.undine.command.UndineSendCommand.runCommand(UndineSendCommand.java:279) ~[?:?]
    at org.bitbucket.ucchy.undine.command.UndineCommand.onCommand(UndineCommand.java:89) ~[?:?]
    at org.bitbucket.ucchy.undine.UndineMailer.onCommand(UndineMailer.java:125) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8-R0.1-SNAPSHOT.jar:git-Spigot-d97e08b-5e85956]
    ... 8 more

@ucchyocean ucchyocean added the bug label Aug 1, 2015

@ucchyocean ucchyocean self-assigned this Aug 1, 2015

@ucchyocean ucchyocean added this to the v1.4.12 milestone Aug 1, 2015

@ucchyocean

This comment has been minimized.

Copy link
Owner Author

commented Aug 1, 2015

コンソールからの /mail write では、本文が0行のケースがある。
MailManager クラスの sendNewMail で、メッセージ0行の場合にメッセージを強制的に1行追加するように変更すればいいのではないか。

ucchyocean added a commit that referenced this issue Aug 1, 2015

@ucchyocean

This comment has been minimized.

Copy link
Owner Author

commented Aug 1, 2015

Fixed
動作確認OK

@ucchyocean ucchyocean closed this Aug 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.