Skip to content

Commit

Permalink
Follow up to #9927 (#9930)
Browse files Browse the repository at this point in the history
`System.getProperty` does not return `null`, it returns `"null"`
:facepalm:.
I broke the internet, sorry.
  • Loading branch information
hubertp authored May 13, 2024
1 parent b76e4d6 commit 43c80da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ object JVMSettings {

private def jvmOptionIfSet(name: String): Option[(String, String)] = {
val propertyValue = System.getProperty(name)
Option(propertyValue).map((name, _))
if (propertyValue != null && !propertyValue.isEmpty)
Some((name, propertyValue))
else None
}

}

0 comments on commit 43c80da

Please sign in to comment.