aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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);