> + this.osVersionMap = checkNotNull(osVersionMap, "osVersionMap");
> + }
> +
> + @Override
> + public Image apply(@Nullable VirtualMachine from) {
> +
> + if (from == null || from.getConfig() == null)
> + {
> + OperatingSystem os =
> OperatingSystem.builder().description("null").family(OsFamily.UNRECOGNIZED)
> + .version("null").is64Bit(true).arch("null").build();
> + return new ImageBuilder()
> + .id("null")
> + .name("null")
> + .description("null")
> +
> .operatingSystem(os).status(toPortableImageStatus.get(from.getRuntime().getPowerState()))
> + .build();
it prevent the user from gettinf NPE.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/61/files#r14208646