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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Martin Mucha <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to