From 27cf6147a66ebc3bf904d62a8543b83a6a8d5705 Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 1 Oct 2016 13:28:34 +0300 Subject: [PATCH] fail safe for non existing levelup sound --- com/gamingmesh/jobs/api/JobsLevelUpEvent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com/gamingmesh/jobs/api/JobsLevelUpEvent.java b/com/gamingmesh/jobs/api/JobsLevelUpEvent.java index 261b8bfc..07767dd8 100644 --- a/com/gamingmesh/jobs/api/JobsLevelUpEvent.java +++ b/com/gamingmesh/jobs/api/JobsLevelUpEvent.java @@ -88,7 +88,7 @@ public final class JobsLevelUpEvent extends Event implements Cancellable { @Deprecated public String getSoundName() { - return this.soundLevelupSound.name(); + return this.soundLevelupSound != null ? this.soundLevelupSound.name() : ""; } public Sound getSound() { @@ -117,7 +117,7 @@ public final class JobsLevelUpEvent extends Event implements Cancellable { @Deprecated public String getTitleChangeSoundName() { - return this.soundTitleChangeSound.name(); + return this.soundTitleChangeSound != null ? this.soundTitleChangeSound.name() : ""; } public Sound getTitleChangeSound() {