You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2015/12/13 16:14:53 UTC

[whimsy.git] [19/37] Commit 0ac5629: don't croak if text_part is missing too

Commit 0ac5629fba4e0c0ab083f4d9437daf8e83cde79e:
    don't croak if text_part is missing too


Branch: refs/heads/secmail
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
views/body.html.rb                                           | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/views/body.html.rb b/views/body.html.rb
index 694f0b7..1b8608c 100644
--- a/views/body.html.rb
+++ b/views/body.html.rb
@@ -45,7 +45,7 @@
 
       _{body.encode('utf-8', invalid: :replace, undef: :replace)}
     end
-  elsif @message.text_part.body
+  elsif @message.text_part
     body = @message.text_part.body.to_s
 
     if body.to_s.encoding == Encoding::BINARY and @message.text_part.charset