Fix OpenProjectEvent
This commit is contained in:
parent
445155ed33
commit
e274ac5e87
|
@ -106,7 +106,10 @@ public class FiletreeController implements Initializable, Controller {
|
|||
|
||||
@Subscribe
|
||||
private void handle(OpenProjectEvent event) {
|
||||
this.showTree(event.getPath().toString());
|
||||
event.getPath().ifPresentOrElse(
|
||||
path -> this.showTree(path.toString()),
|
||||
() -> System.err.println("[ERROR]: OpenProjectEvent was empty!")
|
||||
);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
|
|
Loading…
Reference in New Issue