diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 435738957c..d1991aa08b 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -779,7 +779,7 @@ void GuiView::processingThreadFinished() bool const error = (status != Buffer::ExportSuccess && status != Buffer::PreviewSuccess && status != Buffer::ExportCancel); - if (error) { + if (error && bv) { ErrorList & el = bv->buffer().errorList(d.last_export_format); // at this point, we do not know if buffer-view or // master-buffer-view was called. If there was an export error,