Skip to content

Commit fddc1a1

Browse files
committed
fix NPE
1 parent 8e58c62 commit fddc1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PosixResources.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public InputStream getErrorStream() {
122122
@Override
123123
public int exitValue() {
124124
for (Process child : children) {
125-
if (child != this && !child.isAlive()) {
125+
if (child != null && child != this && !child.isAlive()) {
126126
return child.exitValue();
127127
}
128128
}

0 commit comments

Comments
 (0)