diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-04-26 21:29:31 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-04-26 21:29:31 -0700 |
commit | 5fc25df4eb3cf1427a00319e5599ab0c97022416 (patch) | |
tree | 4fbd4656e201e9794d684558b41c7714ba480ff4 /app/src | |
parent | ca5d525b3efb7fcdc8ee00b4324a534dc443a034 (diff) | |
download | dsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.tar.gz dsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.tar.bz2 dsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.zip |
Fix lots of error logs if path is null
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java index 4df56022..1da3d51b 100644 --- a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java @@ -309,6 +309,10 @@ public class MusicDirectory implements Serializable { public void rebaseTitleOffPath() { try { String filename = getPath(); + if(filename == null) { + return; + } + int index = filename.lastIndexOf('/'); if (index != -1) { filename = filename.substring(index + 1); |