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
jensp 2017-11-23 17:54:49 +00:00
parent 9fd7ae4655
commit 50d200db9c
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) {
if (values == null) {
this.values = values;
this.values = new HashMap<>();
} else {
this.values = new HashMap<>(values);
}