Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beb057bc authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Check for null callback" into tm-dev am: 1ffa981e"

parents f7788c10 59aa284a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -923,7 +923,10 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
        if (modelData != null && modelData.isModelStarted()) {
            modelData.setStoppedLocked();
            try {
                modelData.getCallback().onRecognitionPaused();
                IRecognitionStatusCallback callback = modelData.getCallback();
                if (callback != null) {
                    callback.onRecognitionPaused();
                }
            } catch (DeadObjectException e) {
                forceStopAndUnloadModelLocked(modelData, e);
            } catch (RemoteException e) {