Skip to content

Commit 035f5cd

Browse files
authored
Merge pull request #434 from common-workflow-language/null-expr
Bugfix to handle $(null) expression.
2 parents cc343f0 + 5150202 commit 035f5cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/expression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def evaluator(ex, jslib, obj, fullJS=False, timeout=None, debug=False):
144144
# type: (Text, Text, Dict[Text, Any], bool, int, bool) -> JSON
145145
m = param_re.match(ex)
146146
if m:
147+
if m.end(1)+1 == len(ex) and m.group(1) == "null":
148+
return None
147149
try:
148150
return next_seg(m.group(0)[m.end(1) - m.start(0):-1], obj[m.group(1)])
149151
except Exception as w:

0 commit comments

Comments
 (0)