Bug 1324817 - Fix NPE in setSearchEngineFromBundle; r=me

Fix a NPE in setSearchEngineFromBundle when mIdentifier is null. r=me
for trivial patch.
This commit is contained in:
Jim Chen 2016-12-20 17:01:04 -05:00
parent ad56c994fa
commit 33dd6ce59b

View File

@ -145,7 +145,7 @@ public class SearchEnginePreference extends CustomListPreference {
mIdentifier = geckoEngine.getString("identifier");
// A null JS value gets converted into a string.
if (mIdentifier.equals("null")) {
if (mIdentifier == null || mIdentifier.equals("null")) {
mIdentifier = "other";
}