From d1a23041b9c561ac28c103b85cfed8d56c7cfeec Mon Sep 17 00:00:00 2001 From: Dushyant Bhalgami Date: Thu, 13 Feb 2020 12:30:12 +0530 Subject: [PATCH] fixed issue with v5 groups api --- .../services/view/action/contest/launch/GetContestAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/main/com/topcoder/direct/services/view/action/contest/launch/GetContestAction.java b/src/java/main/com/topcoder/direct/services/view/action/contest/launch/GetContestAction.java index d1c95484a..6d2430238 100644 --- a/src/java/main/com/topcoder/direct/services/view/action/contest/launch/GetContestAction.java +++ b/src/java/main/com/topcoder/direct/services/view/action/contest/launch/GetContestAction.java @@ -474,7 +474,7 @@ protected void executeAction() throws Exception { List 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> projectGroupUser = DirectUtils.getGroups(DirectUtils.getTCSubjectFromSession(), userGroupsApiEndpoint);