diff --git a/Koha/Old/Checkout.pm b/Koha/Old/Checkout.pm index e4cd9989f1..d8c02cd9da 100644 --- a/Koha/Old/Checkout.pm +++ b/Koha/Old/Checkout.pm @@ -42,6 +42,7 @@ Return the checked out item sub item { my ( $self ) = @_; my $item_rs = $self->_result->item; + return unless $item_rs; return Koha::Item->_new_from_dbic( $item_rs ); }