Changeset 33533

Show
Ignore:
Timestamp:
27.09.2019 11:02:18 (3 weeks ago)
Author:
kjdon
Message:

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

Files:
1 modified

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