Skip to content

Commit 84ed600

Browse files
committed
Check for null value when loading format
1 parent 7d36c1a commit 84ed600

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

code/reindexer/reindexer.jar

4 Bytes
Binary file not shown.

code/reindexer/src/com/turning_leaf_technologies/reindexer/IIIRecordProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public void loadPrintFormatInformation(RecordInfo recordInfo, org.marc4j.marc.Re
319319
String formatValue = matTypeSubfield.getData().trim();
320320
if (hasTranslation("format", formatValue)) {
321321
String translatedFormat = translateValue("format", formatValue, recordInfo.getRecordIdentifier());
322-
if (!translatedFormat.isEmpty()) {
322+
if (translatedFormat != null && !translatedFormat.isEmpty()) {
323323
formatLoaded = true;
324324
recordInfo.addFormat(translateValue("format", formatValue, recordInfo.getRecordIdentifier()));
325325
recordInfo.addFormatCategory(translateValue("format_category", formatValue, recordInfo.getRecordIdentifier()));

code/web/release_notes/24.03.01.MD

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
### Event Updates
33
- Correct handling null descriptions in Library Market events. (*MDN*)
44

5+
### Sierra Updates
6+
- Check for null value when loading format. (*MDN*)
7+
58
### Other Updates
69
- Correct "Visit Website" link on Custom Pages when the location uses "default" for the home link. (Ticket 129155) (*MDN*)
710
- Additional error checking when loading browse categories for LiDA. (*MDN*)

0 commit comments

Comments
 (0)