Skip to content

Commit af70f76

Browse files
Anton Khodakmr-c
authored andcommitted
Do not evaluate expressions with self if input object is null
1 parent 835c424 commit af70f76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ def do_eval(self, ex, context=None, pull_image=True, recursive=False):
251251
return {k: self.do_eval(v, context, pull_image, recursive) for k, v in iteritems(ex)}
252252
if isinstance(ex, list):
253253
return [self.do_eval(v, context, pull_image, recursive) for v in ex]
254-
254+
if context is None and type(ex) is str and "self" in ex:
255+
return None
255256
return expression.do_eval(ex, self.job, self.requirements,
256257
self.outdir, self.tmpdir,
257258
self.resources,

0 commit comments

Comments
 (0)