diff --git a/app/models/champ.rb b/app/models/champ.rb index 9e06258d4..e2cd3886d 100644 --- a/app/models/champ.rb +++ b/app/models/champ.rb @@ -82,7 +82,7 @@ class Champ < ApplicationRecord end def sections - @sections ||= dossier.sections_for(self) + @sections ||= dossier&.sections_for(self) end def mandatory_and_blank?