Skip to content

Commit

Permalink
[JENKINS-45472] Copy the list in case it's reused elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Sep 28, 2017
1 parent 6bf676d commit e044675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/ParametersAction.java
Expand Up @@ -100,7 +100,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
private transient Run<?, ?> run;

public ParametersAction(List<ParameterValue> parameters) {
this.parameters = parameters;
this.parameters = new ArrayList<>(parameters);
String paramNames = SystemProperties.getString(SAFE_PARAMETERS_SYSTEM_PROPERTY_NAME);
safeParameters = new TreeSet<>();
if (paramNames != null) {
Expand Down

0 comments on commit e044675

Please sign in to comment.