Fix CLOUDSTACK-2482: NPE in createVolume when displayVolume parameter is

not passed.
This commit is contained in:
Min Chen 2013-05-15 14:47:23 -07:00
parent 8de401caad
commit 4740f84c19
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ public class CreateVolumeCmd extends BaseAsyncCreateCmd {
}
public Boolean getDisplayVolume() {
return displayVolume;
return displayVolume != null ? displayVolume : Boolean.TRUE;
}
/////////////////////////////////////////////////////