Shireesh Anjal has posted comments on this change. Change subject: webadmin: fix NPE in WebAdminHostPageServletTest ......................................................................
Patch Set 2: Verified; Looks good to me, approved Vojtech, if the two methods are called in opposite order than assumed, mockPluginDefinitionsArray would be null when the following line is executed: when(mockRequest.getAttribute(WebAdminHostPageServlet.ATTR_PLUGIN_DEFS)).thenReturn(mockPluginDefinitionsArray); This means that during test execution, getAttribute(WebAdminHostPageServlet.ATTR_PLUGIN_DEFS) returns null, and hence the NPE. -- To view, visit http://gerrit.ovirt.org/13350 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ib76f7bd842d3b58c522e3e97609a9b55d5a79902 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shireesh Anjal <[email protected]> Gerrit-Reviewer: Alissa Bonas <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Kanagaraj M <[email protected]> Gerrit-Reviewer: Shireesh Anjal <[email protected]> Gerrit-Reviewer: Vojtech Szocs <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
