NoMethodError: undefined method 'each' for nil:NilClass

This commit is contained in:
Karel Picman 2016-08-09 09:35:49 +02:00
parent c8928d6691
commit fb7b2623af

View File

@ -88,6 +88,7 @@ class DmsfMailer < Mailer
notify_files = files.select { |file| file.notify? }
return [] if notify_files.empty?
end
return [] unless project.members
notify_members = project.members.select do |notify_member|
notify_user = notify_member.user
if notify_user == User.current && notify_user.pref.no_self_notified