This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  7705893   Allow for null date value (e.g. syntax error in file)
7705893 is described below

commit 7705893ebfc90e92d723581375f57f2dd3c582a6
Author: Sebb <s...@apache.org>
AuthorDate: Tue Sep 20 15:13:31 2016 +0100

    Allow for null date value (e.g. syntax error in file)
---
 www/roster/public_committee_info.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/roster/public_committee_info.rb 
b/www/roster/public_committee_info.rb
index 52d2584..0a10292 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -84,6 +84,10 @@ if changed? and @old_file
       entry[:roster].each { |name, value|
         if !previouspmc['roster'][name] # new name, check the date is OK
           newdate = value[:date]
+          if newdate == nil
+            Wunderbar.warn "Un-dated member for #{pmc}: #{name} 
#{value[:name]} #{newdate}"
+            next
+          end
           if newdate <= updated_day1 and newdate >= updated_day2 # in range
             Wunderbar.info "New member for #{pmc}: #{name} #{value[:name]} 
#{newdate}"
           elsif newdate > updated_day1

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Reply via email to