Changeset 33533


Ignore:
Timestamp:
09/27/19 11:02:18 (14 months ago)
Author:
kjdon
Message:

some collections might not have Title or root_Title metadata, so check that they are not null before comparing them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/BerryBasket.java

    r33220 r33533  
    328328        }
    329329        // check for root_title == title
    330         if (item.metadata.get("root_Title").equals(item.metadata.get("Title"))) {
     330        if (item.metadata.get("root_Title") != null && item.metadata.get("Title") != null && item.metadata.get("root_Title").equals(item.metadata.get("Title"))) {
    331331          item.metadata.remove("root_Title");
    332332         
Note: See TracChangeset for help on using the changeset viewer.