Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.0
Description
Found while writing tests for a new Gfsh command to destroy a GatewayReceiver:
Create a GatewayReceiver with manualStart = true
create gateway-receiver --manual-start==true ...
NPE is thrown by the destroy() in the Function that implements the new destroy gateway-receiver command.
if (receiver.isRunning()) {
receiver.stop();
}
receiver.destroy();
NPE is thrown here:
GatewayReceiverImpl
public void destroy() { if (receiver.isRunning()) {
because receiver is not set until the the GatewayReceiver is started.
Attachments
Issue Links
- links to