Skip to content

Commit 0cceb6d

Browse files
committed
Fix assertion error
1 parent b7cbc6b commit 0cceb6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ssl/SSLContextBuiltins.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ protected static GetAttributeNode createEnvironLookup() {
606606
}
607607

608608
private TruffleFile toTruffleFile(PythonObjectLibrary lib, Object path) throws PException {
609+
if (path == null) {
610+
return null;
611+
}
609612
TruffleFile file;
610613
try {
611614
file = getContext().getEnv().getPublicTruffleFile(lib.asPath(path));

0 commit comments

Comments
 (0)