NullPointerException and other "not enough arguments" handling issues while using Telegram bot #72
Labels
good first issue
Good for newcomers
priority: high
Issue or PR review should be main goal
type: bug
Something isn't working
MCAuth 1.7.12, TelegramBotApi 1.0.0, Velocity-3.2.0-SNAPSHOT-265
I refer to the commands with their config names as I have the slash commands renamed. Config attached: telegram-config.yml.txt
Using 'account-control' and 'unlink' (and may be some other?) commands without parameters in the Telegram bot causes NullPointerException in the server console (server doesn't crash though). Seems that it should be handled at least as 'change-pass' one, which neither throws any exceptions nor returning any messages in Telegram when used without parameters.
However, both behaviours seem strange as there are messages that are supposed to be shown in such cases, their translations can be seen in the config (changepass-not-enough-arguments, unlink-not-enough-arguments, etc.). I haven't succeeded getting those messages anyhow.
The text was updated successfully, but these errors were encountered: