aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-15 14:07:04 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-15 14:07:04 -0800
commit7ab6051ee7f42c9d20f15c0faf1335b9461c7170 (patch)
tree2bed90277f69ad7c4b9ca03b20367537c3fcc01b /src
parentfcc47d9aaf6694fa4e3a489d459c7f24a1580cdc (diff)
downloaddsub-7ab6051ee7f42c9d20f15c0faf1335b9461c7170.tar.gz
dsub-7ab6051ee7f42c9d20f15c0faf1335b9461c7170.tar.bz2
dsub-7ab6051ee7f42c9d20f15c0faf1335b9461c7170.zip
Fix crash if we try to reference a null remoteController
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index df780df5..29fb00b2 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -407,7 +407,7 @@ public class DownloadService extends Service {
}
private void updateJukeboxPlaylist() {
- if (remoteState != LOCAL) {
+ if (remoteState != LOCAL && remoteController != null) {
remoteController.updatePlaylist();
}
}