cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: updated refs/heads/object_store to 4740f84
Date Wed, 15 May 2013 22:14:26 GMT
Updated Branches:
  refs/heads/object_store 8de401caa -> 4740f84c1


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

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4740f84c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4740f84c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4740f84c

Branch: refs/heads/object_store
Commit: 4740f84c192c856e10b5060bfcc1c8f21da0f508
Parents: 8de401c
Author: Min Chen <min.chen@citrix.com>
Authored: Wed May 15 14:47:23 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Wed May 15 14:47:23 2013 -0700

----------------------------------------------------------------------
 .../api/command/user/volume/CreateVolumeCmd.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4740f84c/api/src/org/apache/cloudstack/api/command/user/volume/CreateVolumeCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/volume/CreateVolumeCmd.java b/api/src/org/apache/cloudstack/api/command/user/volume/CreateVolumeCmd.java
index 86a494b..107af11 100644
--- a/api/src/org/apache/cloudstack/api/command/user/volume/CreateVolumeCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/volume/CreateVolumeCmd.java
@@ -117,7 +117,7 @@ public class CreateVolumeCmd extends BaseAsyncCreateCmd {
     }
 
     public Boolean getDisplayVolume() {
-        return displayVolume;
+        return displayVolume != null ? displayVolume : Boolean.TRUE;
     }
 
     /////////////////////////////////////////////////////


Mime
View raw message