Change in ovirt-engine[master]: restapi: fix NPE on ReloadConfigurationsCommand

juan.hernandez at redhat.com juan.hernandez at redhat.com
Tue Feb 3 11:03:15 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: fix NPE on ReloadConfigurationsCommand
......................................................................


restapi: fix NPE on ReloadConfigurationsCommand

org.ovirt.engine.api.model.API is not registered in
org.ovirt.engine.api.utils.LinkHelper#TYPES.
This situation produces produces NPE.

Added precondition test and return 'null', which is sufficient since
API resource does not have related Collection and it's not an entity.

Change-Id: I70fd6b084a33bc7770de245c0001d3eefbb58b66
Signed-off-by: Martin Mucha <mmucha at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Moti Asayag: Looks good to me, but someone else must approve



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I70fd6b084a33bc7770de245c0001d3eefbb58b66
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list