fixed NP
This commit is contained in:
parent
547713f30a
commit
41fa5d949b
@ -46,7 +46,7 @@ public class DefaultTbTenantService implements TbTenantService {
|
|||||||
Tenant oldTenant = updated ? tenantService.findTenantById(tenant.getId()) : null;
|
Tenant oldTenant = updated ? tenantService.findTenantById(tenant.getId()) : null;
|
||||||
|
|
||||||
Tenant savedTenant = tenantService.saveTenant(tenant);
|
Tenant savedTenant = tenantService.saveTenant(tenant);
|
||||||
tenantProfileCache.evict(tenant.getId());
|
tenantProfileCache.evict(savedTenant.getId());
|
||||||
|
|
||||||
TenantProfile oldTenantProfile = oldTenant != null ? tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, oldTenant.getTenantProfileId()) : null;
|
TenantProfile oldTenantProfile = oldTenant != null ? tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, oldTenant.getTenantProfileId()) : null;
|
||||||
TenantProfile newTenantProfile = tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, savedTenant.getTenantProfileId());
|
TenantProfile newTenantProfile = tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, savedTenant.getTenantProfileId());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user