From: Jean-Marc Lasgouttes Date: Tue, 29 May 2018 13:23:28 +0000 (+0200) Subject: Fixup 7900e995: avoid null dereference X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3387 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b54fcc0b7f726682fd614e05ba300c52c4c949b8;p=features.git Fixup 7900e995: avoid null dereference Spotted by Coverity. --- 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,