Skip to content

Commit 43c80da

Browse files
authored
Follow up to #9927 (#9930)
`System.getProperty` does not return `null`, it returns `"null"` :facepalm:. I broke the internet, sorry.
1 parent b76e4d6 commit 43c80da

File tree

1 file changed

+3
-1
lines changed
  • lib/scala/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner

1 file changed

+3
-1
lines changed

lib/scala/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/runner/JVMSettings.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ object JVMSettings {
5959

6060
private def jvmOptionIfSet(name: String): Option[(String, String)] = {
6161
val propertyValue = System.getProperty(name)
62-
Option(propertyValue).map((name, _))
62+
if (propertyValue != null && !propertyValue.isEmpty)
63+
Some((name, propertyValue))
64+
else None
6365
}
6466

6567
}

0 commit comments

Comments
 (0)