Bug 710697 - LinkPreference causes a null preference to be sent to Gecko [r=mbrubeck a=android-only]

This commit is contained in:
Mark Finkle 2011-12-14 16:36:27 -05:00
parent d96a7cc495
commit 8c9f1415d4

View File

@ -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);