aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-05-29 22:04:19 -0500
committerScott Jackson <daneren2005@gmail.com>2016-05-29 22:04:19 -0500
commit6384c5ed2a654cf18948a901f8a35685d17ee248 (patch)
tree29d15b03e36701e6bd4c0f17d602763694226f1e /app/src/main
parent31707f8a1ba68da9c73b8540df44b931d4e4e723 (diff)
downloaddsub-6384c5ed2a654cf18948a901f8a35685d17ee248.tar.gz
dsub-6384c5ed2a654cf18948a901f8a35685d17ee248.tar.bz2
dsub-6384c5ed2a654cf18948a901f8a35685d17ee248.zip
Fixes #703 NPE on refill with no existing executorService
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/ArtistRadioBuffer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/ArtistRadioBuffer.java b/app/src/main/java/github/daneren2005/dsub/util/ArtistRadioBuffer.java
index b42fa066..bdd961b4 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/ArtistRadioBuffer.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/ArtistRadioBuffer.java
@@ -107,7 +107,7 @@ public class ArtistRadioBuffer {
}
private void refill() {
- if (buffer != null && (buffer.size() > refillThreshold || (!Util.isNetworkConnected(context) && !Util.isOffline(context)) || lastCount == 0)) {
+ if (buffer != null && executorService != null && (buffer.size() > refillThreshold || (!Util.isNetworkConnected(context) && !Util.isOffline(context)) || lastCount == 0)) {
executorService.shutdown();
return;
}