Skip to content
Permalink
Browse files

Fix potential NPE in test log statement (#943)

  • Loading branch information...
dhanji committed Apr 24, 2019
1 parent 7ce5bb1 commit 2ac0efac265d4362bbc297fc560bd00bb60e7ca7
Showing with 1 addition and 1 deletion.
  1. +1 −1 misk-testing/src/main/kotlin/misk/testing/MiskTestExtension.kt
@@ -82,7 +82,7 @@ internal class MiskTestExtension : BeforeEachCallback, AfterEachCallback {
serviceManager.startAsync().awaitHealthy(60, TimeUnit.SECONDS)
} catch (e: IllegalStateException) {
// Unearth the root cause so we can see it in logs easily.
log.error("Startup failure -- ${e.cause!!.message}")
log.error("Startup failure -- ${e.cause?.message}")
throw e
}
}

0 comments on commit 2ac0efa

Please sign in to comment.
You can’t perform that action at this time.