Merge "Fix possible NPE in PatchSetSelectBox"
This commit is contained in:
commit
4a82f71b20
@ -133,7 +133,7 @@ public class PatchSetSelectBox extends Composite {
|
|||||||
|
|
||||||
if (idActive == null && side == Side.A) {
|
if (idActive == null && side == Side.A) {
|
||||||
links.get(0).setStyleName(style.selected());
|
links.get(0).setStyleName(style.selected());
|
||||||
} else {
|
} else if (idActive != null) {
|
||||||
links.get(idActive.get()).setStyleName(style.selected());
|
links.get(idActive.get()).setStyleName(style.selected());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user