Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin, userportal: Avoid uncaught exceptions in UiCommonEditorVisitor
......................................................................
webadmin, userportal: Avoid uncaught exceptions in UiCommonEditorVisitor
If a setter method is missing or has wrong argument type,
EditorContext.setInModel (generated) implementation will
look like this:
@Override public void setInModel(EDITED_TYPE data) {
throw new UnsupportedOperationException();
}
See AbstractEditorDriverGenerator:296 for details.
In above mentioned situation, EditorContext.canSetInModel
(generated) implementation will return false.
In short, we should always call canSetInModel before
attempting to call setInModel, otherwise uncaught
exception might break the application.
Change-Id: I4b7fc601bad9470eab7fbfa0e291f69f2cabae03
Signed-off-by: Vojtech Szocs <vszocs(a)redhat.com>
---
M
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/editor/UiCommonEditorVisitor.java
1 file changed, 7 insertions(+), 2 deletions(-)
Approvals:
Vojtech Szocs: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/18429
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4b7fc601bad9470eab7fbfa0e291f69f2cabae03
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Daniel Erez <derez(a)redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen(a)redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server