mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
Support null Secrets when converting form submissions
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user