Fix Can't call method 'notes' on unblessed reference in plugins/logging/file. (#272)

This commit is contained in:
Hans Salvisberg 2016-09-27 23:34:04 +02:00 committed by Matt Simerson
parent e551786a9e
commit 494dc95b72
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ sub hook_logging {
if ( !$self->{_f}
|| !$self->{_nosplit}
|| !$transaction
|| !UNIVERSAL::can($transaction, 'notes')
|| !$transaction->notes('file-logged-this-session'))
{
unless (defined $self->maybe_reopen($transaction)) {