Allon Mureinik has submitted this change and it was merged.

Change subject: ui: DiskModelByAliasComparer: null disk treatment
......................................................................


ui: DiskModelByAliasComparer: null disk treatment

DiskModelByAliasComparer was checking DiskModel.getDisk() for being
null, but then ignoring the check, and performing the same operation
(DiskModel.getDisk().getDiskAlias()) regardless.

This is obviously wrong, since if the disk is null, this will result in
a NullPointerException. This patch assigns a default (empty String) as
the disk alias in case the disk is null.

Change-Id: I2d060a5b9d87dc3ec7bcc382d90a4f2825ca9a05
Signed-off-by: Allon Mureinik <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Allon Mureinik: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2d060a5b9d87dc3ec7bcc382d90a4f2825ca9a05
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to