diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java index e5f34f67b4..69dfb9091c 100644 --- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java +++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java @@ -158,7 +158,7 @@ public class SoftLayerComputeServiceAdapter implements // set operating system or blockDeviceTemplateGroup Optional optionalOperatingSystem = tryExtractOperatingSystemFrom(imageId); - if (optionalOperatingSystem != null) { + if (optionalOperatingSystem.isPresent()) { virtualGuestBuilder.operatingSystem(optionalOperatingSystem.get()); // the imageId specified is an id of a public/private/flex image } else {