diff --git a/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java b/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java index 65d0a1e131..251ebd90b4 100644 --- a/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java +++ b/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java @@ -144,7 +144,7 @@ public class PreferenceServices { for (Map.Entry pairs: userPrefMap.entrySet()) { if ("DEFAULT".equals(pairs.getValue())) { if (UtilValidate.isNotEmpty(generalProperties.get(pairs.getKey()))) { - userPrefMap.put((String) pairs.getKey(), generalProperties.get(pairs.getKey())); + userPrefMap.put(pairs.getKey(), generalProperties.get(pairs.getKey())); } } }