diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-11-14 10:10:43 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-11-14 10:10:43 -0800 |
commit | 5a20c4797b51da18c7f6ab3298075025b294f6b3 (patch) | |
tree | b7cbb949d8def9abbdee2fc5730e01dec86547f3 /src/github/daneren2005 | |
parent | 1070f490e69a74a8205547ded6a6ad98ace5127c (diff) | |
download | dsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.tar.gz dsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.tar.bz2 dsub-5a20c4797b51da18c7f6ab3298075025b294f6b3.zip |
Fix crash when songName is null for some reason
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/OfflineMusicService.java | 4 |
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); } |