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

View File

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