Skip to content

Commit 3a7685f

Browse files
committed
UY-1519 set delegation config only when group is created
1 parent 8ef45c3 commit 3a7685f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-upman/src/main/java/io/imunity/upman/front/views/groups/MenuItemFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private Dialog createAddGroupDialog(ProjectGroup projectGroup, Group group, bool
161161
Map<Locale, String> localeToTxt = localizedTextFieldDetails.getSlottedFields().stream()
162162
.collect(Collectors.toMap(field -> field.locale, TextField::getValue));
163163
Group created = groupService.addGroup(projectGroup, group, localeToTxt, isPublic.getValue());
164-
if(subProjectConfigurationLayout.enableDelegation.getValue())
164+
if(subProjectConfigurationLayout.enableDelegation.getValue() && created != null)
165165
groupService.setGroupDelegationConfiguration(projectGroup, created,
166166
subProjectConfigurationLayout.enableDelegation.getValue(),
167167
subProjectConfigurationLayout.enableSubprojects.getValue(),

0 commit comments

Comments
 (0)