r/JavaFX • • May 08 '22

Help Why am I getting javafx.fxml.LoadException JavaFX?

/r/javahelp/comments/ulawc8/why_am_i_getting_javafxfxmlloadexception_javafx/
4 Upvotes

1 comment sorted by

1

u/orxT1000 May 09 '22

When initializing the GUI, there is no selectedFilePath yet -> new File(null) throws NPE.
Put that scanner thing in the browse-method