Fixed issue with null punishers.

This commit is contained in:
Brianna 2020-02-01 06:16:04 -05:00
parent 5b2b1746d4
commit 6a04685914
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public abstract class Storage {
new StorageItem("duration", appliedPunishment.getDuration()),
new StorageItem("reason", appliedPunishment.getReason()),
new StorageItem("victim", appliedPunishment.getVictim().toString()),
new StorageItem("punisher", appliedPunishment.getPunisher().toString()),
new StorageItem("punisher", appliedPunishment.getPunisher() == null ? null : appliedPunishment.getPunisher().toString()),
new StorageItem("expiration", appliedPunishment.getExpiration()));
}