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 5923dd9 commit 78096b5Copy full SHA for 78096b5
network/common/src/main/java/org/apache/spark/network/util/JavaUtils.java
@@ -44,7 +44,9 @@ public class JavaUtils {
44
/** Closes the given object, ignoring IOExceptions. */
45
public static void closeQuietly(Closeable closeable) {
46
try {
47
- closeable.close();
+ if (closeable != null) {
48
+ closeable.close();
49
+ }
50
} catch (IOException e) {
51
logger.error("IOException should not have been thrown.", e);
52
}
0 commit comments