mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
ad56c994fa
commit
33dd6ce59b
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user