> +import static com.google.common.collect.Iterables.getOnlyElement;
> +
> +/**
> + * @author Andrea Turli
> + */
> +public class ContainerToNodeMetadata implements Function<Container, 
> NodeMetadata> {
> +
> +   @Resource
> +   @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> +   protected Logger logger = Logger.NULL;
> +
> +   private final ApiContext<DockerApi> context;
> +
> +   @Inject
> +   public ContainerToNodeMetadata(ApiContext<DockerApi> context) {
> +      this.context = context;

Make sure parameter is not null.

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

Reply via email to