Fixup 7900e995: avoid null dereference

Spotted by Coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2018-05-29 15:23:28 +02:00
parent d1d3f75548
commit b54fcc0b7f

View 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,