diff --git a/src/main/java/org/wise/portal/presentation/web/controllers/InformationController.java b/src/main/java/org/wise/portal/presentation/web/controllers/InformationController.java index d60e6f78e..f7e272ee1 100644 --- a/src/main/java/org/wise/portal/presentation/web/controllers/InformationController.java +++ b/src/main/java/org/wise/portal/presentation/web/controllers/InformationController.java @@ -796,7 +796,9 @@ private Workgroup getWorkgroup(Run run) { User user = userService.retrieveUser(userDetails); List workgroupListByRunAndUser = workgroupService.getWorkgroupListByRunAndUser(run, user); - workgroup = workgroupListByRunAndUser.get(0); + if (workgroupListByRunAndUser.size() > 0) { + workgroup = workgroupListByRunAndUser.get(0); + } } return workgroup; }