M webclient/build-tests.xml
- re-activate some tests M webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/PreferencesImpl.java - Make null an acceptable argument for prefValue. Make it mean, remove the pref. M webclient/src_moz/PreferencesImpl.cpp - make a null prefValue argument to nativeSetUnicharPref mean, ClearPref(). git-svn-id: svn://10.0.0.236/trunk@154682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -106,9 +106,6 @@ public void setPref(String prefName, String prefValue)
|
||||
if (null == prefName) {
|
||||
return;
|
||||
}
|
||||
if (null == prefValue) {
|
||||
return;
|
||||
}
|
||||
// determine the type of pref value: String, boolean, integer
|
||||
try {
|
||||
Integer intVal = Integer.valueOf(prefValue);
|
||||
@@ -116,7 +113,8 @@ public void setPref(String prefName, String prefValue)
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
// it's not an integer
|
||||
if (prefValue.equals("true") || prefValue.equals("false")) {
|
||||
if (null != prefValue &&
|
||||
(prefValue.equals("true") || prefValue.equals("false"))) {
|
||||
Boolean boolVal = Boolean.valueOf(prefValue);
|
||||
nativeSetBoolPref(getWrapperFactory().getNativeContext(), prefName,
|
||||
boolVal.booleanValue());
|
||||
|
||||
Reference in New Issue
Block a user