[CST-12748] fix for item lookup

This commit is contained in:
Stefano Maffei
2023-11-23 11:10:35 +01:00
parent 68ce1ad76e
commit b271a29e33

View File

@@ -137,12 +137,14 @@ public class LDNMetadataProcessor implements LDNProcessor {
*/
private Item lookupItem(Context context, Notification notification) throws SQLException {
Item item = null;
String url = null;
if (notification.getObject() != null) {
url = notification.getObject().getId();
} else if (notification.getContext() != null) {
if (notification.getContext() != null) {
url = notification.getContext().getId();
} else {
url = notification.getObject().getId();
}
log.info("Looking up item {}", url);
if (LDNUtils.hasUUIDInURL(url)) {