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-94f89814c4df
pull/2/head
jensp 2017-11-23 17:54:49 +00:00
parent 5c21ab4053
commit cde7e361ab
1 changed files with 1 additions and 1 deletions

View File

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