Commit 88addd0e authored by Sarah Grebing's avatar Sarah Grebing

Bugfix in Loading Service

parent 511a856a
Pipeline #22185 passed with stages
in 5 minutes and 27 seconds
......@@ -103,7 +103,11 @@ public class FileReloadingService extends TimerTask {
try {
String content = FileUtils.readFileToString(child.toFile(), Charset.defaultCharset());
CONSOLE_LOGGER.info("Auto-reload {}", child);
Platform.runLater(() -> callbacks.get(child).fileChanged(content));
Platform.runLater(() -> {
if(callbacks.get(child)!= null) {
callbacks.get(child).fileChanged(content);
}
});
} catch (IOException e) {
CONSOLE_LOGGER.catching(e);
} catch (NullPointerException npe){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment