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

Commit 54545f7e authored by Niels Egberts's avatar Niels Egberts
Browse files

NPE occured when trying to parcel voice features.

The default features member should be an empty list instead of null.

Bug: 22404239
Change-Id: Ia39982f17fd3b3cd0f3556435170aed2fac14fb8
parent dbc4edcc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.MissingResourceException;
@@ -247,7 +248,7 @@ public abstract class TextToSpeechService extends Service {
     * @return A list of features supported for the given language.
     */
    protected Set<String> onGetFeaturesForLanguage(String lang, String country, String variant) {
        return null;
        return new HashSet<String>();
    }

    private int getExpectedLanguageAvailableStatus(Locale locale) {