From 3879a82f53e539217e582f2afbccaaf1fe335b5e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 31 May 2013 06:07:57 -0500 Subject: fix undef results --- lib/Reply/Plugin/ResultCache.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Reply/Plugin/ResultCache.pm b/lib/Reply/Plugin/ResultCache.pm index 2a11a02..fc260f5 100644 --- a/lib/Reply/Plugin/ResultCache.pm +++ b/lib/Reply/Plugin/ResultCache.pm @@ -44,6 +44,7 @@ sub mangle_result { my $self = shift; my ($result) = @_; + return unless defined $result; return '$' . $self->{result_name} . '[' . $#{ $self->{results} } . '] = ' . $result; } -- cgit v1.2.3-54-g00ecf