From 1f5aa5bfa42b34c950587f6c90141c82c89bfd6a Mon Sep 17 00:00:00 2001 From: supertick Date: Fri, 26 Apr 2024 17:15:00 -0700 Subject: [PATCH] audiofile stop fix --- src/main/java/org/myrobotlab/service/AudioFile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/myrobotlab/service/AudioFile.java b/src/main/java/org/myrobotlab/service/AudioFile.java index 33cf606d22..26abd0b9f7 100644 --- a/src/main/java/org/myrobotlab/service/AudioFile.java +++ b/src/main/java/org/myrobotlab/service/AudioFile.java @@ -356,8 +356,10 @@ public void stop() { // dump the current song // pause the next one if queued - ap.pause(false); // FIXME me shouldn't it be true ? - ap.stopPlaying(); + if (ap != null) { + ap.pause(false); // FIXME me shouldn't it be true ? + ap.stopPlaying(); + } } // FIXME - implement ???