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 83f1f40 commit 59a4421Copy full SHA for 59a4421
common/src/main/java/org/openshift/ping/common/server/AbstractServer.java
@@ -86,7 +86,9 @@ private String getClusterName(final Channel channel) {
86
}
87
88
protected final void handlePingRequest(Channel channel, InputStream stream) throws Exception {
89
- OpenshiftPing handler = (OpenshiftPing) channel.getProtocolStack().findProtocol(OpenshiftPing.class);
90
- handler.handlePingRequest(stream);
+ if (channel != null) {
+ OpenshiftPing handler = (OpenshiftPing) channel.getProtocolStack().findProtocol(OpenshiftPing.class);
91
+ handler.handlePingRequest(stream);
92
+ }
93
94
0 commit comments