aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-04-26 21:29:31 -0700
committerScott Jackson <daneren2005@gmail.com>2016-04-26 21:29:31 -0700
commit5fc25df4eb3cf1427a00319e5599ab0c97022416 (patch)
tree4fbd4656e201e9794d684558b41c7714ba480ff4 /app/src/main/java/github/daneren2005
parentca5d525b3efb7fcdc8ee00b4324a534dc443a034 (diff)
downloaddsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.tar.gz
dsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.tar.bz2
dsub-5fc25df4eb3cf1427a00319e5599ab0c97022416.zip
Fix lots of error logs if path is null
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java4
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);