This commit is contained in:
Massimiliano Assante 2016-11-14 16:32:21 +00:00
parent e1dbad90dd
commit 800f06bb34
1 changed files with 2 additions and 0 deletions

View File

@ -88,8 +88,10 @@ public class SmartGearsPortalValve extends ValveBase {
return UserLocalServiceUtil.getUser(userId).getScreenName();
} catch (NumberFormatException e) {
_log.error("The userId is not a number -> " + userId);
return null;
} catch (Exception e) {
_log.error("The userId does not belong to any user -> " + userId);
return null;
}
}
return null;