mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 710697 - LinkPreference causes a null preference to be sent to Gecko [r=mbrubeck a=android-only]
This commit is contained in:
parent
d96a7cc495
commit
8c9f1415d4
@ -196,6 +196,9 @@ public class GeckoPreferences
|
||||
|
||||
// send the Preferences:Set message to Gecko
|
||||
public static void setPreference(String pref, Object value) {
|
||||
if (pref == null || pref.length() == 0)
|
||||
return;
|
||||
|
||||
try {
|
||||
JSONObject jsonPref = new JSONObject();
|
||||
jsonPref.put("name", pref);
|
||||
|
Loading…
Reference in New Issue
Block a user