Fix feedResourceTest (#14904)

This commit is contained in:
Sriharsha Chintalapani 2024-01-28 15:45:57 -08:00 committed by GitHub
parent ab6c175711
commit 5bdd057440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1638,7 +1638,7 @@ public class FeedResourceTest extends OpenMetadataApplicationTest {
FeedResource.ThreadCountList threadCounts = listThreadsCount(entityLink, authHeaders);
for (ThreadCount threadCount : threadCounts.getData()) {
if (threadCount.getEntityLink().equalsIgnoreCase(entityLink)) {
return threadCount.getConversationCount();
return threadCount.getConversationCount() != null ? threadCount.getConversationCount() : 0;
}
}
return 0;