Permalink
Browse files

main_content maybe empty

(cherry picked from commit e153c4c)
Fixes bug reported in 16259
We can't backport tests from e9e1761
on 4.0-trunk without significant other changes
  • Loading branch information...
1 parent 6e223ea commit 9f9e70a2d3a75d4cb58faa66f6991a76a641f3e7 sunnavy committed with jibsheet Dec 24, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/RT/Transaction_Overlay.pm
@@ -557,6 +557,8 @@ sub ContentAsMIME {
my $self = shift;
my $main_content = $self->ContentObj;
+ return unless $main_content;
+
my $entity = $main_content->ContentAsMIME;
if ( $main_content->Parent ) {

0 comments on commit 9f9e70a

Please sign in to comment.