diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-18 20:58:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-19 09:54:11 +0200 |
commit | 72eea49fc69e38b60e1d588ab9295db273e8e6dc (patch) | |
tree | 5cd8a6f700ab77665de65a635ff030f0e5312ac4 /starmath | |
parent | 898b8e653824da62bbd2d34430c85901da7c5222 (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.cxx | 2 |
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)); } |