Liron Ar has posted comments on this change.

Change subject: core: added GetAllDiskSnapshotsByStorageDomainIdQuery
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.ovirt.org/#/c/26323/4/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetAllDiskSnapshotsByStorageDomainIdQuery.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetAllDiskSnapshotsByStorageDomainIdQuery.java:

Line 34:         for (final DiskImage diskImage : diskImages) {
Line 35:             Snapshot snapshot = (Snapshot) 
CollectionUtils.find(snapshots, new Predicate() {
Line 36:                 @Override
Line 37:                 public boolean evaluate(Object snapshot) {
Line 38:                     return 
diskImage.getVmSnapshotId().equals(((Snapshot) snapshot).getId());
seems like a NPE for floating disks.
Line 39:                 }
Line 40:             });
Line 41: 
Line 42:             
diskImage.setVmSnapshotDescription(snapshot.getDescription());


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I389579e4120cb33edca594caa762a8bad63362b7
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to