mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
Avoid NPE
This commit is contained in:

committed by
Terry W Brady

parent
c29745d421
commit
9bd0a58342
@@ -206,6 +206,9 @@ public class GroupTest extends AbstractUnitTest {
|
|||||||
List<String> names = new ArrayList<>();
|
List<String> names = new ArrayList<>();
|
||||||
List<String> sortedNames = new ArrayList<>();
|
List<String> sortedNames = new ArrayList<>();
|
||||||
for (Group group : groups) {
|
for (Group group : groups) {
|
||||||
|
if (group.getName() == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
names.add(group.getName());
|
names.add(group.getName());
|
||||||
sortedNames.add(group.getName());
|
sortedNames.add(group.getName());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user