Protect against empty default_CD_modifiers in opensrf.xml
authorMike Rylander <mrylander@gmail.com>
Wed, 29 Feb 2012 17:04:54 +0000 (12:04 -0500)
committerDan Scott <dan@coffeecode.net>
Mon, 9 Apr 2012 18:58:12 +0000 (14:58 -0400)
commit3c71b24ffb06049587db24c7bd4d70d135e6f790
tree209e983ebe7333cc0aedce4dcbc676e27fed2b1e
parent7fae54ad0523f26c5202cffd5d06be8039e500cf
Protect against empty default_CD_modifiers in opensrf.xml

If the app settings for the open-ils.search service in opensrf.xml had
an empty (but not entirely missing) <default_CD_modifiers> element, then
the open-ils.storage log would contain entries like the following:

Use of uninitialized value $class in hash element at
/usr/local/share/perl5/OpenILS/Application/Storage/QueryParser.pm

Protect against that problem with more defensive code in QueryParser.pm.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm