Skip to content

Commit

Permalink
handle empty labels list
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelsohn committed Jul 24, 2019
1 parent 84a7d4f commit 60bc148
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CreateDeploymentPayload {
public CreateDeploymentPayload(String environmentId, String applicationId, List<String> planLabels, CreateDeploymentProperties properties) {
this.environmentId = environmentId;
this.applicationId = applicationId;
this.planLabels = planLabels;
this.planLabels = planLabels == null || planLabels.isEmpty() ? null : planLabels;
this.properties = properties;
}
}
}

0 comments on commit 60bc148

Please sign in to comment.