> +         Matcher matcher = WINDOWS_VERSION_PATTERN.matcher(name);
> +         if (matcher.matches()) {
> +            version = matcher.group(1);
> +         }
> +      } else {
> +         Matcher matcher = UNIX_VERSION_PATTERN.matcher(name);
> +         if (matcher.matches()) {
> +            version = matcher.group(1);
> +         }
> +      }
> +
> +      if (version == null) {
> +         logger.warn("could not find the operating system version for image: 
> %s", name);
> +      }
> +
> +      return version;

Is version allowed to be `null`? `WellKnownImage.Builder` does not list it as 
`@Nullable`?

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

Reply via email to