mirror of https://github.com/apache/cloudstack.git
Fix CLOUDSTACK-2482: NPE in createVolume when displayVolume parameter is
not passed.
This commit is contained in:
parent
8de401caad
commit
4740f84c19
|
|
@ -117,7 +117,7 @@ public class CreateVolumeCmd extends BaseAsyncCreateCmd {
|
|||
}
|
||||
|
||||
public Boolean getDisplayVolume() {
|
||||
return displayVolume;
|
||||
return displayVolume != null ? displayVolume : Boolean.TRUE;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue