Commit 6b855f3
committed
AbstractInputHarvester: fix unsafe widget cast
We now explicitly check if the widget is the right type before using it.
In practice, the AbstractInputPanel#supports(InputWidget) method already
checked this, so it should never be the case that an incompatible
widget is returned by WidgetService#create(WidgetModel). But there is no
guarantee that all downstream code is using the abstract superclasses,
so let's check again -- better safe than sorry here.1 parent 780411e commit 6b855f3
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
0 commit comments