From b91cec20658b95e526859c8fc18de94c85d41ba8 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 22 Sep 2010 01:03:19 +0000 Subject: [PATCH] handle null as a return result for an empty list git-svn-id: svn://svn.open-ils.org/ILS/trunk@17881 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/holds.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 3486ced33c..72c4caa9dd 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -309,8 +309,10 @@ patron.holds.prototype = { params: [ses()], } ); - if (typeof robj.ilsevent != 'undefined') { throw(robj); } - print.simple( robj.template_output().data() ); + if (robj != null) { + if (typeof robj.ilsevent != 'undefined') { throw(robj); } + print.simple( robj.template_output().data() ); + } } catch(E) { obj.error.standard_unexpected_error_alert('cmd_holds_print_full',E); } -- 2.11.0