diff --git a/lib/galaxy/webapps/galaxy/controllers/history.py b/lib/galaxy/webapps/galaxy/controllers/history.py index 3f16bc0ecc9..e2246c28c15 100644 --- a/lib/galaxy/webapps/galaxy/controllers/history.py +++ b/lib/galaxy/webapps/galaxy/controllers/history.py @@ -488,6 +488,10 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt history_is_current = history_to_view == trans.history else: history_to_view = trans.history + if not history_to_view: + raise exceptions.RequestParameterMissingException( + "No 'id' parameter provided for history, and user does not have a current history." + ) user_is_owner = True history_is_current = True