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

Commit 59aa284a authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17300633

Change-Id: I025f7298a1dab0097520ebaacd01b8f7039009ce
parents f4949f65 1ffa981e
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) {