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

Former-commit-id: 50d200db9c
pull/2/head
jensp 2017-11-23 17:54:49 +00:00
parent 0d05e3a980
commit c00506a0fb
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);
}