diff --git a/Koha/Patron/Attribute.pm b/Koha/Patron/Attribute.pm index 9118a7f812..5afd674149 100644 --- a/Koha/Patron/Attribute.pm +++ b/Koha/Patron/Attribute.pm @@ -106,7 +106,8 @@ displayed instead of the code. sub description { my ( $self) = @_; if ( $self->type->authorised_value_category ) { - return $self->authorised_value->lib; + my $av = $self->authorised_value; + return $av ? $av->lib : ""; } return $self->attribute; }