diff options
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 01c5481b0..5eaab3eca 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -221,6 +221,9 @@ SPDocument::~SPDocument() { SPDefs *SPDocument::getDefs() { + if (!root) { + return NULL; + } return root->defs; } |
