From d75d1591685d00a9ab6774d204b900a1ead61f8f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 13 Jan 2020 13:03:52 +0100 Subject: [PATCH] Prevent NULL pointer --- src/Buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index eabb2181b9..c0abc95200 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -5348,7 +5348,8 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const } // set change indicator for the inset - parit.inset().asInsetText()->isChanged(changed); + if (parit.inset().asInsetText()) + parit.inset().asInsetText()->isChanged(changed); } -- 2.39.5