Description
In method mapEntityToViewBean of class \security-admin\src\main\java\org\apache\ranger\service\AuthSessionService.java,
there is some code can be improved:
1.The following code is repated twice, remove one of them.
viewObj.setLastName(gjUser.getLastName());
2.Check null before using gjUser.
XXPortalUser gjUser = daoMgr.getXXPortalUser().getById(resource.getUserId());
3.Family name should be last name instead of email address.
viewObj.setFamilyScreenName(gjUser.getEmailAddress());