From df1a036268e52396eca349b2803a5e05f891733c Mon Sep 17 00:00:00 2001
From: Patrick J Cherry <patrick@bytemark.co.uk>
Date: Tue, 27 Nov 2012 09:02:42 +0000
Subject: Make sure nil event_types are no treated as strings.

---
 lib/mauve/alert.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index fb4587e..ed2b1dd 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -360,7 +360,7 @@ module Mauve
           h.event += @attributes_before_save.keys.collect{|k| "#{k.to_s}: #{@attributes_before_save[k]} -> #{self.__send__(k)}"}.join(", ") 
 
         else
-          h.event = self.update_type.upcase
+          h.event = (self.update_type || "UNKNOWN").upcase
 
         end
 
-- 
cgit v1.2.3