MrTigreroux / TigerReports

Spigot plugin to manage player reports.
16 stars 17 forks source link

Issue when trying to report someone who is not online #130

Closed ReoSenpai closed 1 year ago

ReoSenpai commented 1 year ago

When trying to report someone who is not in the server, I receive this error message. No sure why, but just wanted to report it :)

[17:23:24 WARN]: [TigerReports] Plugin TigerReports v5.1.3 generated an exception while executing task 22968 java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.toString()" because "replacement" is null at java.lang.String.replace(String.java:2957) ~[?:?] at fr.mrtigreroux.tigerreports.managers.VaultManager.getVaultDisplayName(VaultManager.java:124) ~[TigerReports (1).jar:?] at fr.mrtigreroux.tigerreports.managers.VaultManager.access$000(VaultManager.java:24) ~[TigerReports (1).jar:?] at fr.mrtigreroux.tigerreports.managers.VaultManager$1.run(VaultManager.java:100) ~[TigerReports (1).jar:?] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-431] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.3.jar:git-Paper-431] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.3.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?]

MrTigreroux commented 1 year ago

Hello, thank you for reporting this issue. It is strange that you are the first one to report it, maybe you have a particular Vault setup. In any case, I will fix it as soon as possible.

MrTigreroux commented 1 year ago

Hello, The problem should be fixed in the new 5.1.4 version. Thank you again for reporting it. Please let me know if it's not the case. Have a good day.