Skip to content

In TransportOutputStream.java when close() is called it will attempt to open a conneciton if the outputSream is null #1206

@jmmain69

Description

@jmmain69

In spring-ws/spring-ws-core/src/main/java/org/springframework/ws/transport/TransportOutputStream.java when close is called if the output stream is already null it will attempt to open a connection just to close it. Recommend adding a null check.

@Override
public void close() throws IOException {
            if (outputStream != null) {
                getOutputStream().close();
            }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions