Change in ovirt-engine[master]: core: fix NPE when mounting run once CD

rgolan at redhat.com rgolan at redhat.com
Tue Jan 15 12:18:03 UTC 2013


Roy Golan has submitted this change and it was merged.

Change subject: core: fix NPE when mounting run once CD
......................................................................


core: fix NPE when mounting run once CD

A payload is valid a device (e.g. CD) that has specParams field set with a
structure containing vmPayload key.
when checking for a vmPayload using isPayload method we should fail fast
if specParams is null, avoid NPE and return false.

Change-Id: I7312102ab6f93122f06ae7c7bd6b1c3158e54ea0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=893115
Signed-off-by: Roy Golan <rgolan at redhat.com>
---
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Roy Golan: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7312102ab6f93122f06ae7c7bd6b1c3158e54ea0
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Shahar Havivi <shavivi at redhat.com>



More information about the Engine-commits mailing list