Fix ChangeManagerWrapper #8

Merged
kske merged 1 commits from b/javafx-wrapper-properties into develop 2021-12-25 21:14:54 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
*/
public ChangeManagerWrapper(M manager) {
this.manager = manager;
updateProperties();
}
@Override

View File

@ -21,7 +21,7 @@ public interface ObservableChangeManager<C extends Change> extends ChangeManager
@Override
default Optional<C> getLastChange() {
return Optional.of(lastChangeProperty().get());
return Optional.ofNullable(lastChangeProperty().get());
}
ReadOnlyBooleanProperty atMarkedChangeProperty();