am 4a60d618: Fix NPE in TextToSpeech with setLanguage(null)
Merge commit '4a60d61887a20d349e5eb38900dfbcaab06630fc' into gingerbread-plus-aosp * commit '4a60d61887a20d349e5eb38900dfbcaab06630fc': Fix NPE in TextToSpeech with setLanguage(null)
This commit is contained in:
@@ -1065,6 +1065,9 @@ public class TextToSpeech {
|
|||||||
if (!mStarted) {
|
if (!mStarted) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
if (loc == null) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
String language = loc.getISO3Language();
|
String language = loc.getISO3Language();
|
||||||
String country = loc.getISO3Country();
|
String country = loc.getISO3Country();
|
||||||
|
|||||||
Reference in New Issue
Block a user