diff --git a/src/tnode.h b/src/tnode.h index 60fac38b6..cf52d66e0 100644 --- a/src/tnode.h +++ b/src/tnode.h @@ -107,6 +107,9 @@ class tnode_t { } wcstring get_source(const wcstring &str) const { + if (!nodeptr) { + return L""; + } return nodeptr->get_source(str); }