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

Commit 88696daa authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in TTS service if no engine string" into udc-qpr-dev am: a3f36b1e

parents e356c40a a3f36b1e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -63,6 +63,12 @@ public final class TextToSpeechManagerService extends
        public void createSession(String engine,
                ITextToSpeechSessionCallback sessionCallback) {
            synchronized (mLock) {
                if (engine == null) {
                    runSessionCallbackMethod(
                            () -> sessionCallback.onError("Engine cannot be null"));
                    return;
                }

                TextToSpeechManagerPerUserService perUserService = getServiceForUserLocked(
                        UserHandle.getCallingUserId());
                if (perUserService != null) {