From b54fcc0b7f726682fd614e05ba300c52c4c949b8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 29 May 2018 15:23:28 +0200 Subject: [PATCH] Fixup 7900e995: avoid null dereference Spotted by Coverity. --- src/frontends/qt4/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,