Commit 7c2f331
taylor.smock
Fix #23081: NoSuchElementException in ConflictDialog.ResolveToAction#actionPerformed
This occurs when one of the `Resolve to (my|their) versions` actions is called
when no conflict is selected.
There are two distinct bugs:
* `isConflictSelected` did not check to make certain that the selection index
made sense
* `ResolveAction`s were not enabled/disabled when the popup menu became visible,
depending upon whether the current selection was valid
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18783 0c6e7542-c601-0410-84e7-c038aed88b3b1 parent 9d540bc commit 7c2f331
File tree
2 files changed
+16
-16
lines changed- src/org/openstreetmap/josm/gui/dialogs
- test/unit/org/openstreetmap/josm/gui/dialogs
2 files changed
+16
-16
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
| |||
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
| 377 | + | |
| 378 | + | |
371 | 379 | | |
372 | 380 | | |
373 | 381 | | |
| |||
528 | 536 | | |
529 | 537 | | |
530 | 538 | | |
531 | | - | |
| 539 | + | |
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
| |||
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
41 | 33 | | |
42 | | - | |
| 34 | + | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
| |||
0 commit comments