Changes made to upgrade pom version
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / service / ExternalAccessRolesServiceImpl.java
index 9784356..4e83b92 100644 (file)
@@ -2893,7 +2893,7 @@ public class ExternalAccessRolesServiceImpl implements ExternalAccessRolesServic
                                                                        roleFunction = dataAccessService.executeNamedQuery("getAppFunctionOnCodeAndAppId",
                                                                                        appFuncsParams, null);
                                                                }
-                                                               if (!roleFunction.isEmpty()) {
+                                                               if (!roleFunction.isEmpty() && roleId != null) {
                                                                        EPAppRoleFunction apRoleFunction = new EPAppRoleFunction();
                                                                        apRoleFunction.setAppId(app.getId());
                                                                        apRoleFunction.setRoleId(roleId);