Null check for dso handle

This commit is contained in:
Marie Verdonck
2020-07-10 11:54:28 +02:00
parent 94e3d3df68
commit fbba2302b6

View File

@@ -673,7 +673,7 @@ public class StatisticsDataVisits extends StatisticsData {
case Constants.ITEM:
Item item = itemService.findByIdOrLegacyId(context, dsoId);
if (item == null) {
if (item == null || item.getHandle() == null) {
break;
}
@@ -682,7 +682,7 @@ public class StatisticsDataVisits extends StatisticsData {
case Constants.COLLECTION:
Collection coll = collectionService.findByIdOrLegacyId(context, dsoId);
if (coll == null) {
if (coll == null || coll.getHandle() == null) {
break;
}
@@ -691,7 +691,7 @@ public class StatisticsDataVisits extends StatisticsData {
case Constants.COMMUNITY:
Community comm = communityService.findByIdOrLegacyId(context, dsoId);
if (comm == null) {
if (comm == null || comm.getHandle() == null) {
break;
}