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

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Sep 25 08:08:12 UTC 2015


Juan Hernandez has submitted this change and it was merged.

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


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

This is needed in order to avoid the following findbugs 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: I6fa5bf732c459c7e1dad0f69033f199662899ebd
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/docs/src/main/java/org/ovirt/engine/docs/utils/servlet/ContextSensitiveHelpMappingServlet.java
1 file changed, 15 insertions(+), 9 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Greg Sheremeta: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6fa5bf732c459c7e1dad0f69033f199662899ebd
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme 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