Java

Java

Made by DeepSource

Attempt to close a null value detected JAVA-S0250

Bug risk
Critical

close() is being invoked on a value that is always null. If this statement is executed, a null pointer exception will occur.

Another serious issue is the fact that the resource that is meant to be closed is not closed.