diff options
author | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-08-07 15:12:24 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-08-07 15:12:34 +0530 |
commit | a94388ed941c82a38b2e631cc4fd77bac212335b (patch) | |
tree | 1345c473d238f82227b9cd5e520ec0384ec4d6d9 /ecomp-portal-BE-common/src/main | |
parent | dd2c6fd1355f93857dc7b5ab23776a1d6543f006 (diff) |
App Onboarding Inactive -500 Internal Server Error
App Onboarding Inactive -Throwing 500 Internal Server Error
Issue-ID: PORTAL-976
Change-Id: I47eca9a9c1bf95476c2df666ac1bc7e05751552c
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-portal-BE-common/src/main')
-rw-r--r-- | ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java index a4463c7f..3d2432cb 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/EPAppCommonServiceImpl.java @@ -1634,7 +1634,11 @@ public class EPAppCommonServiceImpl implements EPAppService { } protected String constructImageName(OnboardingApp onboardingApp) { - return "portal_" + String.valueOf(onboardingApp.getLandingPage().hashCode() + "_" + (int) (Math.random() * 100000.0)) + String appLandingPageURL = onboardingApp.getLandingPage(); + if(appLandingPageURL == null) { + appLandingPageURL = ""; + } + return "portal_" + String.valueOf(appLandingPageURL.hashCode() + "_" + (int) (Math.random() * 100000.0)) + ".png"; } |