From a15dc3767919c091b29bef65666ae0754fabf988 Mon Sep 17 00:00:00 2001 From: Daniel Gyoerffy <49782833+Dansoftowner@users.noreply.github.com> Date: Thu, 8 Apr 2021 15:44:47 +0200 Subject: [PATCH] Fixing a null-pointer --- .../java/com/dansoftware/mdeditor/MarkdownEditorControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dansoftware/mdeditor/MarkdownEditorControl.java b/src/main/java/com/dansoftware/mdeditor/MarkdownEditorControl.java index 07634d3..b29ee32 100644 --- a/src/main/java/com/dansoftware/mdeditor/MarkdownEditorControl.java +++ b/src/main/java/com/dansoftware/mdeditor/MarkdownEditorControl.java @@ -17,7 +17,7 @@ public MarkdownEditorControl.ViewMode get() { }; private final BooleanProperty toolbarVisible = new SimpleBooleanProperty(); - private final StringProperty markdown = new SimpleStringProperty(); + private final StringProperty markdown = new SimpleStringProperty(""); private final BooleanProperty editable = new SimpleBooleanProperty(true); public MarkdownEditorControl() {