]> git.lyx.org Git - features.git/commitdiff
Fixup 7900e995: avoid null dereference
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 29 May 2018 13:23:28 +0000 (15:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 29 May 2018 13:23:28 +0000 (15:23 +0200)
Spotted by Coverity.

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,