mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Fix crash when nodeptr is null and node->get_source() is called
Responsible for the crash during the low-level tests after
9c63ad3209.
This commit is contained in:
@@ -107,6 +107,9 @@ class tnode_t {
|
||||
}
|
||||
|
||||
wcstring get_source(const wcstring &str) const {
|
||||
if (!nodeptr) {
|
||||
return L"";
|
||||
}
|
||||
return nodeptr->get_source(str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user