tinaselenge commented on code in PR #14453:
URL: https://github.com/apache/kafka/pull/14453#discussion_r1340283213


##########
core/src/test/scala/unit/kafka/tools/DumpLogSegmentsTest.scala:
##########
@@ -105,7 +105,9 @@ class DumpLogSegmentsTest {
 
   @AfterEach
   def tearDown(): Unit = {
-    log.close()
+    if (log != null) {
+      log.close()

Review Comment:
   Yes, that makes much more sense. Thank you @divijvaidya!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to