I'm not sure if this is causing the null pointer exception, but you need to update the text area on the FX Application Thread. You should replace
updateTextArea();
with
Platform.runLater(() -> updateTextArea());
or, if you are still using Java 7,
Platform.runLater(new Runnable() {
@Override
public void run() {
updateTextArea();
}
});