https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35052 --- Comment #24 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 205616 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205616&action=edit Bug 35052: Add defensive null check for patron category Prevent potential null pointer dereference if $patron->category unexpectedly returns undef. While this shouldn't happen in normal Koha operation (category is a required foreign key), add explicit check to close the defensive-coding gap. Test plan: 1) ktd --name "${KTD_INSTANCE:-kohadev}" --shell --run 'prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t' 2) All tests pass -- You are receiving this mail because: You are watching all bug changes.