From e8349bd221233f95eeb2205ddfd6df42f3a39133 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Tue, 30 Oct 2018 21:04:06 -0400 Subject: Checking for sound file not found and returning proper string --- src/main/java/soundchan/LocalAudioManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/soundchan/LocalAudioManager.java b/src/main/java/soundchan/LocalAudioManager.java index 4b16850..28d25b9 100644 --- a/src/main/java/soundchan/LocalAudioManager.java +++ b/src/main/java/soundchan/LocalAudioManager.java @@ -58,6 +58,9 @@ public class LocalAudioManager { path = ""; } } + if(path.contentEquals(filepath + "/null")) { + return ""; + } return path; } -- cgit v1.2.3