Support null Secrets when converting form submissions

This commit is contained in:
Daniel Beck committed 2020-03-28 01:49:32 +01:00
1 parent 41fc5e8622
commit c2cbd5e984
1 file changed
+3
@@ -303,6 +303,9 @@ public final class Secret implements Serializable {
static {
Stapler.CONVERT_UTILS.register(new org.apache.commons.beanutils.Converter() {
public Secret convert(Class type, Object value) {
if (value == null) {
return null;
}
if (value instanceof Secret) {
return (Secret) value;
}