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:57:35 +0000 (14:57 -0400)
commit767a65660d0b6f5a3b04243e0d7b6270f3c89b63
tree067037903d73082270040b812ef4b636313f9d89
parent5dff6311f57bebf391647b3f3d1a67ffe01c5e75
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