summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-18 20:58:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-19 09:54:11 +0200
commit72eea49fc69e38b60e1d588ab9295db273e8e6dc (patch)
tree5cd8a6f700ab77665de65a635ff030f0e5312ac4 /starmath
parent898b8e653824da62bbd2d34430c85901da7c5222 (diff)
cid#1490357 Dereference after null check
Change-Id: I107dc27a4bec1794293192dea986670220989ec6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120685 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathml/import.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/mathml/import.cxx b/starmath/source/mathml/import.cxx
index e5060956b56f..952e5c1ec39f 100644
--- a/starmath/source/mathml/import.cxx
+++ b/starmath/source/mathml/import.cxx
@@ -705,7 +705,7 @@ void SmMLImportContext::inheritStyle()
}
// Inherit mathvariant
- if (m_pStyle->isAttributeSet(SmMlAttributeValueType::MlMathvariant))
+ if (m_pStyle && m_pStyle->isAttributeSet(SmMlAttributeValueType::MlMathvariant))
m_pElement->setAttribute(m_pStyle->getAttribute(SmMlAttributeValueType::MlMathvariant));
}