Actions
Bug #16103
closedNoMethodError: undefined method `label' for nil:NilClass
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Description
In certain cases users will remove old entries in the foreman_tasks_tasks table via a rake utility.
This causes dangling references in the ContentViewHistories object in reference to their task object.
This causes:
2016-08-13 19:38:40 [app] [W] Action failed | NoMethodError: undefined method `label' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.68/app/models/katello/content_view_history.rb:47:in `humanized_action'
as the self.task object is nil:
case self.task.label
Actions