diff options
Diffstat (limited to 'src/helper/action.cpp')
| -rw-r--r-- | src/helper/action.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/helper/action.cpp b/src/helper/action.cpp index 9b8cbfce8..84d150615 100644 --- a/src/helper/action.cpp +++ b/src/helper/action.cpp @@ -131,9 +131,11 @@ public: : ActionEventBase(share_static_string("action")) { _addProperty(share_static_string("timestamp"), timestamp()); - SPDocument *document = action->view->doc(); - if (document) { - _addProperty(share_static_string("document"), document->serial()); + if (action->view) { + SPDocument *document = action->view->doc(); + if (document) { + _addProperty(share_static_string("document"), document->serial()); + } } _addProperty(share_static_string("verb"), action->id); } |
