Skip to content

Commit cbad2d0

Browse files
committed
check null entries after ThreadGroup enumerate()
fixes #1666
1 parent 775cb23 commit cbad2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/org/opensolaris/opengrok/index/IndexerRepoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private void checkNumberOfThreads() {
6969
Thread[] threads = new Thread[mainGroup.activeCount()];
7070
mainGroup.enumerate(threads);
7171
for (int i = 0; i < threads.length; i++) {
72-
if (threads[i].getName() == null) {
72+
if (threads[i] == null || threads[i].getName() == null) {
7373
continue;
7474
}
7575
assertEquals(false, threads[i].getName().contains("renamed-handling"));

0 commit comments

Comments
 (0)