ARTEMIS-611 Remove redundant null check

This commit is contained in:
Ville Skyttä 2016-07-28 19:58:10 +03:00 committed by Clebert Suconic
parent 40c84fa003
commit 72bf5b7a0a
1 changed files with 3 additions and 5 deletions

View File

@ -286,11 +286,9 @@ public final class StompConnection implements RemotingConnection {
return;
}
if (me != null) {
StompFrame frame = frameHandler.createStompFrame(Stomp.Responses.ERROR);
frame.addHeader(Stomp.Headers.Error.MESSAGE, me.getMessage());
sendFrame(frame);
}
StompFrame frame = frameHandler.createStompFrame(Stomp.Responses.ERROR);
frame.addHeader(Stomp.Headers.Error.MESSAGE, me.getMessage());
sendFrame(frame);
destroyed = true;
}