From 3799ce0a487b963074cd05a949b3cd551a391b99 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Wed, 15 Sep 2010 14:20:49 -0700 Subject: [PATCH] allowed image to be null --- .../EC2PopulateDefaultLoginCredentialsForImageStrategy.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/aws/core/src/main/java/org/jclouds/aws/ec2/compute/strategy/EC2PopulateDefaultLoginCredentialsForImageStrategy.java b/aws/core/src/main/java/org/jclouds/aws/ec2/compute/strategy/EC2PopulateDefaultLoginCredentialsForImageStrategy.java index f0e215a9dc..b92d72579a 100644 --- a/aws/core/src/main/java/org/jclouds/aws/ec2/compute/strategy/EC2PopulateDefaultLoginCredentialsForImageStrategy.java +++ b/aws/core/src/main/java/org/jclouds/aws/ec2/compute/strategy/EC2PopulateDefaultLoginCredentialsForImageStrategy.java @@ -20,7 +20,6 @@ package org.jclouds.aws.ec2.compute.strategy; import static com.google.common.base.Preconditions.checkArgument; -import static com.google.common.base.Preconditions.checkNotNull; import javax.inject.Singleton; @@ -37,7 +36,6 @@ public class EC2PopulateDefaultLoginCredentialsForImageStrategy implements @Override public Credentials execute(Object resourceToAuthenticate) { - checkNotNull(resourceToAuthenticate); checkArgument(resourceToAuthenticate instanceof Image, "Resource must be an image (for EC2)"); Image image = (Image) resourceToAuthenticate;