diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index b32f9a7b91..654a1cb809 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -47,6 +47,7 @@ Return the item linked to this account line if exists sub item { my ( $self ) = @_; my $rs = $self->_result->itemnumber; + return unless $rs; return Koha::Item->_new_from_dbic( $rs ); }