Vojtech Szocs has posted comments on this change. Change subject: webadmin: check explicitly if isDiscovered is equal to true ......................................................................
Patch Set 2: (1 comment) http://gerrit.ovirt.org/#/c/32267/2/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java: Line 991: parameters.setNetworkProviderId(networkProvider.getId()); Line 992: parameters.setNetworkMappings(model.getInterfaceMappings().getEntity()); Line 993: } Line 994: Line 995: if (Boolean.TRUE.equals(model.getIsDiscorveredHosts().getEntity())) { > http://gerrit.ovirt.org/#/c/32250/ Actually, there are 2 cases when model.getIsDiscorveredHosts() is called and can be null - see patch above (HostListModel & HostPopupView). Both of these 2 cases should be fixed. Ideally, you'd want to initialize EntityModel's boolean value in HostListModel constructor to avoid NPEs, but that can be considered as an improvement. Line 996: Provider<?> provider = (Provider<?>) model.getProviders().getSelectedItem(); Line 997: ExternalHostGroup hostGroup = (ExternalHostGroup) model.getExternalHostGroups().getSelectedItem(); Line 998: ExternalComputeResource computeResource = (ExternalComputeResource) model.getExternalComputeResource().getSelectedItem(); Line 999: ExternalDiscoveredHost discoveredHost = (ExternalDiscoveredHost)model.getExternalDiscoveredHosts().getSelectedItem(); -- To view, visit http://gerrit.ovirt.org/32267 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ide820aa4d51bfc92414d2515d8d1eeb0551a18ca Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: Daniel Erez <[email protected]> Gerrit-Reviewer: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Vojtech Szocs <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
