FabioZumbi12 / UltimateChat

Ultimate and advanced Chat for Bukkit and Sponge
GNU General Public License v3.0
31 stars 33 forks source link

[BUG] NPE quando é setado " " no PlayerCommandPreprocessEvent #282

Closed brunoxkk0 closed 4 years ago

brunoxkk0 commented 4 years ago

JAR: UltimateChat-1.8.9-b235-Universal.jar

Descreva o bug Quando algum plugin altera a mensagem no PlayerCommandPreprocessEvent para " ", ele dropa um NPE no console.

Reproduzir 1 - Altere a mensagem de algum PlayerCommandPreprocessEvent para " ". 2 - Execute o comando e veja o NPE aparecer no console.

Comportamento esperado Ignorasse o " " e retornasse.

Capturas de tela e registros Log do erro: https://gist.github.com/brunoxkk0/1f196e709a5035ac8adbfb4c2ba6a439

Versões de servidor e plug-ins (preencha as seguintes informações):  - Servidor: Mohist - 1.12.2  - Versão do plug-in: UltimateChat-1.8.9-b235-Universal.jar  - Versão do Java: 1.8

Contexto adicional N/A