aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2018-10-30 21:04:06 -0400
committerMatt Kohls <mattkohls13@gmail.com>2018-10-30 21:04:06 -0400
commite8349bd221233f95eeb2205ddfd6df42f3a39133 (patch)
treeee0a3ddf5c110d4e0a874fec31f1cb7d735e4381
parentf78dc260bc113e458020cfacaacd26fb4c2a4a27 (diff)
downloadSoundChan-e8349bd221233f95eeb2205ddfd6df42f3a39133.tar.gz
SoundChan-e8349bd221233f95eeb2205ddfd6df42f3a39133.tar.bz2
SoundChan-e8349bd221233f95eeb2205ddfd6df42f3a39133.zip
Checking for sound file not found and returning proper stringbugfix/nothing-found-by-null
-rw-r--r--src/main/java/soundchan/LocalAudioManager.java3
1 files changed, 3 insertions, 0 deletions
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;
}