LP#1947173: Clean up bad cataloging pot hole
authorMike Rylander <mrylander@gmail.com>
Wed, 20 Oct 2021 20:22:37 +0000 (16:22 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 5 Nov 2021 16:04:47 +0000 (12:04 -0400)
commit2d0a459eaca7d4a6613c4a5b3f40fe8b3481673e
treeeb97a943ecc2c3c29aaa3444f8115e29e7fbbb88
parent32c880ddc7a1209e5239dbd07b6b1531fb74b1b0
LP#1947173: Clean up bad cataloging pot hole

If a MARC record has effectively empty fields (all space or punctuation)
then it's possible to stumble over a NULL text array when parsing
content for the symspell dictionary.  This commit checks for that
condition and returns early to avoid the problem.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.symspell-speed-ingest.sql