Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

avoid NPE if default TTS cannot be found #2080

Merged
merged 1 commit into from Aug 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -134,7 +134,9 @@ public void say(String text, String voiceId, String sinkId) {
Voice voice = null;
if (voiceId == null) {
tts = getTTS();
voice = getPreferredVoice(tts.getAvailableVoices());
if (tts != null) {
voice = getPreferredVoice(tts.getAvailableVoices());
}
} else if (voiceId.contains(":")) {
// it is a fully qualified unique id
String[] segments = voiceId.split(":");
Expand Down