We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f35d08 commit 0725ffdCopy full SHA for 0725ffd
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonOptions.java
@@ -368,7 +368,11 @@ public int hashCode() {
368
369
@SuppressWarnings("unchecked")
370
public <T> T get(OptionKey<T> optionKey) {
371
- return (T) engineOptions.get(optionKey);
+ if (engineOptions.containsKey(optionKey)) {
372
+ return (T) engineOptions.get(optionKey);
373
+ } else {
374
+ return optionKey.getDefaultValue();
375
+ }
376
}
377
378
public boolean hasBeenSet(OptionKey<?> optionKey) {
0 commit comments