Hithomelabs/CFTunnels#88: Add null-safety for env list in redeploy()

This commit is contained in:
Dave the Dev 2026-07-06 07:07:21 +00:00
parent d27176a7d5
commit 145597b8bd

View File

@ -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);
}
}