Change in ovirt-engine[ovirt-engine-3.3]: core: Prevent NPE with cobertura

iheim at redhat.com iheim at redhat.com
Sat Sep 28 19:37:26 UTC 2013


Itamar Heim has submitted this change and it was merged.

Change subject: core: Prevent NPE with cobertura
......................................................................


core: Prevent NPE with cobertura

The NetworkDaoDbFacadeImpl contains an abstract row mapper and then two
derived ones, and all of them, including the abstract one contain a
singleton. The singleton in the abstract one is never used, and it
causes a NPE if used. Some tools, like cobertura, generate code that
uses all the fields, and thus reveal this hidden NPE. This patch just
removes the unused field.

Change-Id: I811fe567010037fd12e4deeb517fb3396c724b53
Bug-Url: https://bugzilla.redhat.com/1012455
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/network/NetworkDaoDbFacadeImpl.java
1 file changed, 0 insertions(+), 2 deletions(-)

Approvals:
  Itamar Heim: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I811fe567010037fd12e4deeb517fb3396c724b53
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez 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