diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index 31348b9d6e0..ac6905758da 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -1012,7 +1012,7 @@ class WorkflowContentsManager(UsesAnnotations): if not module.label and module.type in ['data_input', 'data_collection_input']: new_state = safe_loads(state) default_label = new_state.get('name') - if util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']: + if default_label and util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']: step.label = module.label = default_label