Hithomelabs/CFTunnels#88: Add null-safety for env list in redeploy()
This commit is contained in:
parent
d27176a7d5
commit
145597b8bd
@ -23,7 +23,7 @@ public class DeployService {
|
||||
|
||||
public void redeploy(Long stackId) {
|
||||
PortainerStack stack = portainerApiClient.getStack(stackId);
|
||||
List<EnvVariable> env = stack.getEnv();
|
||||
List<EnvVariable> env = stack.getEnv() != null ? stack.getEnv() : List.of();
|
||||
portainerApiClient.redeployGitStack(stackId, props.getEndpointId(), true, env);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user