Skip to content

Commit

Permalink
fixed issue with v5 groups api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushyant Bhalgami committed Feb 13, 2020
1 parent 4dac26b commit d1a2304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ protected void executeAction() throws Exception {
List<ProjectGroup> projectGroups = DirectUtils.getGroupIdAndName(
softwareCompetition.getProjectHeader().getGroups());

if (this.type == TYPE.CONTEST_JSON) {
if (projectGroups != null && this.type == TYPE.CONTEST_JSON) {
// get v5 id of groups
Set<Map<String, String>> projectGroupUser = DirectUtils.getGroups(DirectUtils.getTCSubjectFromSession(),
userGroupsApiEndpoint);
Expand Down

0 comments on commit d1a2304

Please sign in to comment.