Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 24e0e40

Browse files
author
Dushyant Bhalgami
authored
Fix v5 groups (#519)
* added fix for v5 groups
1 parent bc73201 commit 24e0e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ workflows:
9090
context : org-global
9191
filters:
9292
branches:
93-
only: [dev, dev-sts]
93+
only: [dev, fix_v5_groups, dev-sts]
9494
- build-qa:
9595
context : org-global
9696
filters:

src/java/main/com/topcoder/direct/services/view/action/contest/launch/GetContestAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ protected void executeAction() throws Exception {
474474
List<ProjectGroup> projectGroups = DirectUtils.getGroupIdAndName(
475475
softwareCompetition.getProjectHeader().getGroups());
476476

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

0 commit comments

Comments
 (0)