Commit fff053c
committed
Avoid ClassCastException when casting to EvaluationResult
Add a type check before casting the evaluation result to
EvaluationResult in JavaObjectValueEditor to prevent a potential
ClassCastException when other evaluation engines return different result
types.
Fixes : #9101 parent e12e710 commit fff053c
1 file changed
Lines changed: 8 additions & 7 deletions
File tree
- org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments