Change in ovirt-engine[master]: core: Check result of "listFiles" in "BrandingManager"

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Sep 24 10:24:47 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: core: Check result of "listFiles" in "BrandingManager"
......................................................................


core: Check result of "listFiles" in "BrandingManager"

This is needed in order to avoid the following fidnbugs warning:

  Possible null pointer dereference due to return value of called method

  The return value from a method is dereferenced without a null check,
  and the return value of that method is one that should generally be
  checked for null. This may lead to a NullPointerException when the
  code is executed.

  Bug kind and pattern: NP - NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

Change-Id: I1dfc5b158904727d1e4acb6b947a023c9d9a3d90
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/branding/src/main/java/org/ovirt/engine/core/branding/BrandingManager.java
1 file changed, 15 insertions(+), 15 deletions(-)

Approvals:
  Juan Hernandez: Verified
  Alexander Wels: Looks good to me, approved
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1dfc5b158904727d1e4acb6b947a023c9d9a3d90
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list