From ef17ef23ea508a531e2724c191ca0ddc1daa0b74 Mon Sep 17 00:00:00 2001 From: hhrasna Date: Wed, 30 May 2012 20:45:20 -0300 Subject: [PATCH] EC2 image architecture can be null. Don't throw NPE if architecture is null. --- apis/ec2/src/main/java/org/jclouds/ec2/domain/Image.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/ec2/src/main/java/org/jclouds/ec2/domain/Image.java b/apis/ec2/src/main/java/org/jclouds/ec2/domain/Image.java index 12a95d11cb..c3e8592799 100644 --- a/apis/ec2/src/main/java/org/jclouds/ec2/domain/Image.java +++ b/apis/ec2/src/main/java/org/jclouds/ec2/domain/Image.java @@ -78,7 +78,7 @@ public class Image implements Comparable { @Nullable String ramdiskId, RootDeviceType rootDeviceType, @Nullable String rootDeviceName, Map ebsBlockDevices, VirtualizationType virtualizationType, Hypervisor hypervisor) { this.region = checkNotNull(region, "region"); - this.architecture = checkNotNull(architecture, "architecture"); + this.architecture = architecture; this.imageId = checkNotNull(imageId, "imageId"); this.name = name; this.description = description;