Change in ovirt-engine[master]: core: Fix NPE when disk size is not yet set

tnisan at redhat.com tnisan at redhat.com
Wed Dec 24 14:39:21 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: core: Fix NPE when disk size is not yet set
......................................................................


core: Fix NPE when disk size is not yet set

Available disk size is set to null on Storage Domain creation, to be
later polled and updated. This patch protects from the period of time
this value is null, a situation that can occur in storage allocation
validations on new domains.

Change-Id: Icca933dcf506ca702161fcfbfe400a7259d20d1a
Bug-Url: https://bugzilla.redhat.com/1176854
Signed-off-by: Vered Volansky <vvolansk at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/StorageDomainValidator.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/StorageDomain.java
2 files changed, 10 insertions(+), 8 deletions(-)

Approvals:
  Allon Mureinik: Looks good to me, approved
  Vered Volansky: Verified



-- 
To view, visit http://gerrit.ovirt.org/36382
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icca933dcf506ca702161fcfbfe400a7259d20d1a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <vvolansk at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Vered Volansky <vvolansk at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list