Skip to content

Commit

Permalink
MODFQMMGR-462 Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mweaver-ebsco committed Sep 11, 2024
1 parent b9d5768 commit ada5817
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public List<String> getTenantsToQuery(EntityType entityType, boolean forceCrossT
// The Instances entity type is required to retrieve shared instances from the central tenant when
// running queries from member tenants. This means that if we are running a query for Instances, we need to
// query the current tenant (for local records) as well as the central tenant (for shared records).
if (COMPOSITE_INSTANCES_ID.equals(entityType.getId())) {
if (centralTenantId != null && COMPOSITE_INSTANCES_ID.equals(entityType.getId())) {
return List.of(executionContext.getTenantId(), centralTenantId);
}
return List.of(executionContext.getTenantId());
Expand Down

0 comments on commit ada5817

Please sign in to comment.