diff --git a/lib/galaxy/tools/parameters/__init__.py b/lib/galaxy/tools/parameters/__init__.py index 81950cbb3e43..1bc0258350d4 100644 --- a/lib/galaxy/tools/parameters/__init__.py +++ b/lib/galaxy/tools/parameters/__init__.py @@ -737,6 +737,13 @@ def populate_state_async( incoming[input_name] = [int(v) for v in value] else: incoming[input_name] = value + elif input.type == "text": + # see behavior of tools in test_tools.py::test_null_to_text_tools + # these parameters act as empty string in this context + if value is None and not input.optional: + incoming[input_name] = "" + else: + incoming[input_name] = value else: incoming[input_name] = value