Skip to content

Commit

Permalink
[#3983] Get rid of unsafe version read (#3984)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan authored Sep 26, 2024
1 parent 82d7035 commit 7c41414
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal fun Route.getVersion() = get(PATH_VERSION) {
Logger.v { "GET Request $PATH_VERSION" }

call.respondText(
text = "Version: ${javaClass.`package`.implementationVersion}",
text = "Version: ${javaClass.`package`?.implementationVersion}",
contentType = ContentType.Text.Plain,
status = HttpStatusCode.OK
)
Expand Down

0 comments on commit 7c41414

Please sign in to comment.