CCM NG: Changed handling for null values in setValues. If null is provided an empty map is created.
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5136 8810af33-2d31-482b-a856-94f89814c4dfpull/2/head
parent
5c21ab4053
commit
cde7e361ab
|
|
@ -103,7 +103,7 @@ public class LocalizedString implements Serializable {
|
||||||
*/
|
*/
|
||||||
protected void setValues(final Map<Locale, String> values) {
|
protected void setValues(final Map<Locale, String> values) {
|
||||||
if (values == null) {
|
if (values == null) {
|
||||||
this.values = values;
|
this.values = new HashMap<>();
|
||||||
} else {
|
} else {
|
||||||
this.values = new HashMap<>(values);
|
this.values = new HashMap<>(values);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue