summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/NodeModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index f178a6c7..d087b883 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -416,7 +416,10 @@ NodeModule::set_selected(bool b)
if (b) {
PatchWindow* win = app.window_factory()->parent_patch_window(node());
if (win) {
- const std::string& doc = node()->plugin_model()->documentation();
+ std::string doc;
+ if (node()->plugin_model()) {
+ doc = node()->plugin_model()->documentation();
+ }
if (!doc.empty()) {
win->doc_textview()->get_buffer()->set_text(doc);
win->doc_textview()->show();