]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
Fixup 7900e995: avoid null dereference
[features.git] / src / frontends / qt4 / GuiView.cpp
index 435738957ccdd1cdef51df43371dae53fe01d060..d1991aa08b22bffde1aaf3e68d8cf74d29349fde 100644 (file)
@@ -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,