Commit fd3b90db by Kunj Gupta

Fixed - App is crashing in chat screen.

parent 80b52de7
......@@ -279,8 +279,10 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
if(droidSpeech != null) {
droidSpeech.closeDroidSpeechOperations();
}
speaker.allow(true);
speaker.speak(message, mNewMessageUtteranceId);
if(speaker != null) {
speaker.allow(true);
speaker.speak(message, mNewMessageUtteranceId);
}
}
mMessages.add(chatBotHistory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment