> +
> +      Console.Type type = (Console.Type) postParams.get("type");
> +
> +      switch (type) {
> +         case NOVNC:
> +         case XVPVNC:
> +            action = "os-getVNCConsole";
> +            break;
> +         case SPICE_HTML5:
> +            action = "os-getSPICEConsole";
> +            break;
> +         case RDP_HTML5:
> +            action = "os-getRDPConsole";
> +            break;
> +         default:
> +            throw new IllegalArgumentException("Invalid type: " + type);

I believe this can happen, if the someone pass a null value as the type 
argument of getConsole() function in ConsolesApi, or as you say if someone 
modifies the enum without updating here as well.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/339/files#r13038118

Reply via email to