diff options
-rw-r--r-- | src/github/daneren2005/dsub/service/RESTMusicService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java index 7def53c2..00108eac 100644 --- a/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -249,7 +249,7 @@ public class RESTMusicService implements MusicService { public MusicDirectory getMusicDirectory(String id, String name, boolean refresh, Context context, ProgressListener progressListener) throws Exception { SharedPreferences prefs = Util.getPreferences(context); String cacheLocn = prefs.getString(Constants.PREFERENCES_KEY_CACHE_LOCATION, null); - if(id.indexOf(cacheLocn) != -1) { + if(cacheLocn != null && id.indexOf(cacheLocn) != -1) { String search = Util.parseOfflineIDSearch(context, id, cacheLocn); SearchCritera critera = new SearchCritera(search, 1, 1, 0); SearchResult result = searchNew(critera, context, progressListener); |