[Bugfix] fixed NPE when Certificate is created with null properties
This commit is contained in:
parent
4627f59a80
commit
5e6423c443
|
@ -89,7 +89,10 @@ public final class Certificate implements Serializable {
|
|||
else
|
||||
this.locale = locale;
|
||||
|
||||
this.propertyMap = Collections.unmodifiableMap(propertyMap);
|
||||
if (propertyMap == null)
|
||||
this.propertyMap = Collections.emptyMap();
|
||||
else
|
||||
this.propertyMap = Collections.unmodifiableMap(propertyMap);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue