aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrandon <bwaggone@umich.edu>2018-11-10 20:06:13 -0500
committerGitHub <noreply@github.com>2018-11-10 20:06:13 -0500
commitaa8c0e31584a046d7b9515f6bf1c191331d00333 (patch)
treeea8b7919d9c58156eb1dcf554036e7171977d8bb /src
parent7279979078f75500657f691b798802782d09765f (diff)
parente8349bd221233f95eeb2205ddfd6df42f3a39133 (diff)
downloadSoundChan-aa8c0e31584a046d7b9515f6bf1c191331d00333.tar.gz
SoundChan-aa8c0e31584a046d7b9515f6bf1c191331d00333.tar.bz2
SoundChan-aa8c0e31584a046d7b9515f6bf1c191331d00333.zip
Merge pull request #12 from bwaggone/bugfix/nothing-found-by-null
Checking for sound file not found and returning proper string
Diffstat (limited to 'src')
-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;
}