Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development