Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jmmain69 opened this issue Jul 29, 2021 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@jmmain69
Copy link

jmmain69 commented Jul 29, 2021

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();
            }
}
leaqui added a commit to leaqui/spring-ws that referenced this issue Jul 31, 2021
@gregturn gregturn self-assigned this Dec 1, 2021
@gregturn gregturn added in: core type: bug A general bug labels Dec 1, 2021
@gregturn gregturn added this to the 3.1.2 milestone Dec 1, 2021
gregturn pushed a commit that referenced this issue Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants