We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aba1c6 commit 39209a5Copy full SHA for 39209a5
src/test/java/org/gitlab4j/api/TestProjectApi.java
@@ -140,7 +140,9 @@ private static void deleteAllTransientTestData() {
140
if (TEST_GROUP != null && TEST_PROJECT_NAME != null) {
141
try {
142
List<Group> groups = gitLabApi.getGroupApi().getGroups(TEST_GROUP);
143
- gitLabApi.getProjectApi().unshareProject(testProject, groups.get(0).getId());
+ if (groups != null && groups.size() > 0) {
144
+ gitLabApi.getProjectApi().unshareProject(testProject, groups.get(0).getId());
145
+ }
146
147
List<Variable> variables = gitLabApi.getProjectApi().getVariables(testProject);
148
if (variables != null) {
0 commit comments