summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/ResultCache.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reply/Plugin/ResultCache.pm')
-rw-r--r--lib/Reply/Plugin/ResultCache.pm1
1 files changed, 1 insertions, 0 deletions
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;
}