commit | 99461875f3da1f93f78b704e0f59b98f7dce4b8a | [log] [tgz] |
---|---|---|
author | Sudarshan Kumar <sudarshan.kumar@att.com> | Fri May 01 12:23:22 2020 +0530 |
committer | Sudarshan Kumar <sudarshan.kumar@att.com> | Fri May 01 12:24:49 2020 +0530 |
tree | 832694ffb897950c35d796f96ae0c0cb3358ff45 | |
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>
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 abbd854..dd5f5f4 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 @@ 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();