Skip to content

Commit

Permalink
fix(core): allow null namespace in uploadFiles task (#4518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye authored Aug 2, 2024
1 parent 02c8689 commit 9e67f52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public class UploadFiles extends Task implements RunnableTask<UploadFiles.Output
@Override
@SuppressWarnings({"unchecked", "rawtypes"})
public UploadFiles.Output run(RunContext runContext) throws Exception {
String renderedNamespace = runContext.render(namespace);
RunContext.FlowInfo flowInfo = runContext.flowInfo();
String renderedNamespace = namespace != null ? runContext.render(namespace) : flowInfo.namespace();
String renderedDestination = checkLeadingSlash(runContext.render(destination));

final Namespace storageNamespace = runContext.storage().namespace(renderedNamespace);
Expand Down

0 comments on commit 9e67f52

Please sign in to comment.