Change in ovirt-engine[master]: webadmin: possible NPE in VdcActionUtils

mbetak at redhat.com mbetak at redhat.com
Thu May 19 14:08:50 UTC 2016


Martin Betak has submitted this change and it was merged.

Change subject: webadmin: possible NPE in VdcActionUtils
......................................................................


webadmin: possible NPE in VdcActionUtils

In some rare cases the VdcActionUtils.canExecute can receive entities == null
causing NPE.

Fixed by a simple null check since the null entity can not execute any actions
on it.

Change-Id: I47c7694928ad40dda6840e526964dcf78555ad66
Bug-Url: https://bugzilla.redhat.com/1324066
Signed-off-by: Tomas Jelinek <tjelinek at redhat.com>
---
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Tomas Jelinek: Verified
  Jenkins CI: Passed CI tests
  Martin Betak: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/57719
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I47c7694928ad40dda6840e526964dcf78555ad66
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list