aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-14 10:10:43 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-14 10:10:43 -0800
commit5a20c4797b51da18c7f6ab3298075025b294f6b3 (patch)
treeb7cbb949d8def9abbdee2fc5730e01dec86547f3 /src/github
parent1070f490e69a74a8205547ded6a6ad98ace5127c (diff)
downloaddsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.tar.gz
dsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.tar.bz2
dsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.zip
Fix crash when songName is null for some reason
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/OfflineMusicService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/OfflineMusicService.java b/src/github/daneren2005/dsub/service/OfflineMusicService.java
index c26a2fc4..887ad84f 100644
--- a/src/github/daneren2005/dsub/service/OfflineMusicService.java
+++ b/src/github/daneren2005/dsub/service/OfflineMusicService.java
@@ -320,6 +320,10 @@ public class OfflineMusicService implements MusicService {
for(File songFile : FileUtil.listMediaFiles(albumFile)) {
String songName = getName(songFile);
+ if(songName == null) {
+ continue;
+ }
+
if(songFile.isDirectory()) {
recursiveAlbumSearch(artistName, songFile, criteria, context, albums, songs);
}