EC2 image architecture can be null. Don't throw NPE if architecture is null.

This commit is contained in:
hhrasna 2012-05-30 20:45:20 -03:00 committed by Adrian Cole
parent 9009963894
commit ea04772e08
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class Image implements Comparable<Image> {
@Nullable String ramdiskId, RootDeviceType rootDeviceType, @Nullable String rootDeviceName,
Map<String, EbsBlockDevice> 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;