> + */
> +public class BindLaunchConfigurationToJson implements MapBinder {
> +
> + private final BindToJsonPayload jsonBinder;
> +
> + @Inject
> + private BindLaunchConfigurationToJson(BindToJsonPayload jsonBinder) {
> + this.jsonBinder = jsonBinder;
> + }
> +
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Map<String,
> Object> postParams) {
> + LaunchConfiguration launchConfigurationRequest = (LaunchConfiguration)
> postParams.get("launchConfiguration");
> +
> + Map<String, Object> launchConfigurationMap = Maps.newHashMap();
> + Map<String, Object> args = Maps.newHashMap();
Nulls are only problematic here with immutable lists, I think.
ImmutableMap.Builder.put should not throw NPE. I have to still run some live
tests for this change.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/39/files#r7326393