diff options
author | 2020-05-01 12:23:22 +0530 | |
---|---|---|
committer | 2020-05-01 12:24:49 +0530 | |
commit | 99461875f3da1f93f78b704e0f59b98f7dce4b8a (patch) | |
tree | 832694ffb897950c35d796f96ae0c0cb3358ff45 /ecomp-portal-BE-common/src/main/java/org | |
parent | 40b292ad1ff5a2ba00fcde8f023058cfb52c2d4e (diff) |
Exception handling for email
Exception handling for email
Issue-ID: PORTAL-898
Change-Id: I7f14a7c75c8303330689fa17bbaac6759a91d15a
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-portal-BE-common/src/main/java/org')
-rw-r--r-- | ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java index abbd854a..dd5f5f4d 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/FunctionalMenuController.java @@ -583,8 +583,12 @@ public class FunctionalMenuController extends EPRestrictedBaseController { isSystemUser = user.isSystemUser(); emailStr = user.getEmail(); if (emailStr == null || emailStr.equals("")) { - EPUser userResult = searchService.searchUserByUserId(orgUserIdStr); - emailStr = userResult.getEmail(); + try { + EPUser userResult = searchService.searchUserByUserId(orgUserIdStr); + emailStr = userResult.getEmail(); + }catch(Exception ex) { + logger.error(EELFLoggerDelegate.errorLogger, "searchUserByUserId call failed", ex); + } } SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss Z a"); Date lastLoginDate = user.getLastLoginDate(); |