diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb index 5a7e4d741a3..c14cdb80b46 100644 --- a/app/jobs/regular/export_csv_file.rb +++ b/app/jobs/regular/export_csv_file.rb @@ -134,7 +134,7 @@ module Jobs # deleted topic topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id']) end - category = topic_data.category + category = topic_data.category if topic_data sub_category = "-" if category category_name = category.name