@@ -, +, @@ Koha::Account::Line->item prove t/db_dependent/Koha/Account/Lines.t --- Koha/Account/Line.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/Account/Line.pm +++ a/Koha/Account/Line.pm @@ -50,6 +50,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 ); } --