We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7563ca4 commit acc88a6Copy full SHA for acc88a6
src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemo.java
@@ -123,8 +123,14 @@ public ErrorwindowDemo() {
123
throwErrorWithCustomMessage,
124
throwErrori18nSupport);
125
126
- add(new Button("Navigation error",
127
- ev -> UI.getCurrent().navigate(ThrowInConstructorView.class)));
+ add(new Button("Navigation error", ev -> {
+ UI current = UI.getCurrent();
128
+ try {
129
+ UI.class.getMethod("navigate", Class.class).invoke(current, ThrowInConstructorView.class);
130
+ } catch (Exception e) {
131
+ throw new RuntimeException(e);
132
+ }
133
+ }));
134
135
add(upload);
136
0 commit comments