Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: core
    • Labels:
      None

      Description

      ScriptBasedClusterAction is using NPE for flow control.

      public Cluster execute(ClusterSpec clusterSpec, Cluster cluster) throws IOException, InterruptedException {
      ...
      for (String role : instanceTemplate.getRoles()) {
      try

      { handlerMap.get(role).beforeAction(event); }

      catch (NullPointerException e)

      { throw new IllegalArgumentException("No handler for role " + role); }

      }
      ...
      }

      I just lost about an hour trying to find out why the actionhandler was not being registered while the NPE came from the beforeAction() call.

        Attachments

        1. WHIRR-394.patch
          8 kB
          Andrei Savu
        2. WHIRR-394.patch
          6 kB
          Andrei Savu
        3. WHIRR-394.patch
          0.9 kB
          David Alves

          Activity

            People

            • Assignee:
              dr-alves David Alves
              Reporter:
              dr-alves David Alves
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: