Kenneth Howe created GEODE-4770:

             Summary: Destroying an unstarted GatewayReceiver throws an NPE
                 Key: GEODE-4770
             Project: Geode
          Issue Type: Bug
          Components: wan
            Reporter: Kenneth Howe

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()) {
NPE is thrown here:
  public void destroy() {
    if (receiver.isRunning()) {
because {{receiver}} is not set until the the GatewayReceiver is started.

This message was sent by Atlassian JIRA

Reply via email to