Fix NPE in SetVariables when variables are null
kestra-io/kestra • PR #13776
✅ MergedFixed a NullPointerException in the SetVariables task when overwrite: false is used. The task assumed execution.getVariables() was non-null and attempted to call containsKey(...), which caused a crash for webhook-triggered executions.
The fix defensively initializes a local variables map before performing duplicate checks and merges, preserving existing behavior while preventing the NPE.