Skip to content

Commit

Permalink
LPD-26931 SF
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Jul 17, 2024
1 parent 82a3773 commit 16e1866
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ public void testUpgradeProcessSystemRestClientTemplateObjectSAPEntry()

Company company = CompanyTestUtil.addCompany();

SAPEntry systemRESTClientTemplateObjectSAPEntry =
_sapEntryLocalService.fetchSAPEntry(
company.getCompanyId(),
_sapConfiguration.systemRESTClientTemplateObjectSAPEntryName());
SAPEntry sapEntry = _sapEntryLocalService.fetchSAPEntry(
company.getCompanyId(),
_sapConfiguration.systemRESTClientTemplateObjectSAPEntryName());

if (systemRESTClientTemplateObjectSAPEntry != null) {
_sapEntryLocalService.deleteSAPEntry(
systemRESTClientTemplateObjectSAPEntry);
if (sapEntry != null) {
_sapEntryLocalService.deleteSAPEntry(sapEntry);
}

_runUpgrade();
Expand Down

0 comments on commit 16e1866

Please sign in to comment.