Follow up to #9927 (#9930)

`System.getProperty` does not return `null`, it returns `"null"`
🤦.
I broke the internet, sorry.
This commit is contained in:
Hubert Plociniczak 2024-05-13 16:43:24 +02:00 committed by GitHub
parent b76e4d678d
commit 43c80da8a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}