~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/image-manager/src/main/java/edu/ucsb/eucalyptus/cloud/ws/ImageManager.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
    if( !"kernel".equals( kernelInfo.getImageType( ) ) ) {
231
231
      throw new EucalyptusCloudException( "Image specified is not a kernel: " + kernelInfo.toString( ) );
232
232
    }
233
 
    if( !"ramdisk".equals( ramdiskInfo.getImageType( ) ) ) {
 
233
    if((ramdiskInfo != null) && !"ramdisk".equals( ramdiskInfo.getImageType( ) ) ) {
234
234
      throw new EucalyptusCloudException( "Image specified is not a ramdisk: " + ramdiskInfo.toString( ) );
235
235
    }
236
236
    ImageUtil.checkStoredImage( kernelInfo );