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 ...@@ -279,8 +279,10 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
if(droidSpeech != null) { if(droidSpeech != null) {
droidSpeech.closeDroidSpeechOperations(); droidSpeech.closeDroidSpeechOperations();
} }
speaker.allow(true); if(speaker != null) {
speaker.speak(message, mNewMessageUtteranceId); speaker.allow(true);
speaker.speak(message, mNewMessageUtteranceId);
}
} }
mMessages.add(chatBotHistory); 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