mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-04-18 18:40:34 +08:00
Fix potential NPE
Related: 3323ea2be07fa6cbdb6ea4412187ced51d09308c
This commit is contained in:
parent
3323ea2be0
commit
acadbdb5c9
@ -86,7 +86,13 @@ public class AdvancedListItemSkin extends SkinBase<AdvancedListItem> {
|
||||
right.getStyleClass().setAll("toggle-icon4");
|
||||
FXUtils.setLimitWidth(right, 40);
|
||||
FXUtils.onChangeAndOperate(skinnable.rightGraphicProperty(),
|
||||
newGraphic -> right.getChildren().setAll(newGraphic));
|
||||
newGraphic -> {
|
||||
if (newGraphic == null) {
|
||||
right.getChildren().clear();
|
||||
} else {
|
||||
right.getChildren().setAll(newGraphic);
|
||||
}
|
||||
});
|
||||
root.setRight(right);
|
||||
|
||||
FXUtils.onChangeAndOperate(skinnable.actionButtonVisibleProperty(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user