diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-23 10:34:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-23 13:50:45 +0100 |
commit | d479a215538590e50ea9d8fb29ac972df06c6d10 (patch) | |
tree | acea62363b5aab5eb57c17386e5872b314c82b7c /sw/source/uibase | |
parent | 9e4825beb82ee68642eca5031ad57fc55d384256 (diff) |
cid#1500601 Dereference after null check
Change-Id: I2f757ce2a57793720feacd1ca3b6d42bf56c1be9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130428
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/swmodul1.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx index 183ce20261b4..fd0122fd3445 100644 --- a/sw/source/uibase/app/swmodul1.cxx +++ b/sw/source/uibase/app/swmodul1.cxx @@ -217,6 +217,7 @@ void SwModule::ApplyUserMetric( FieldUnit eMetric, bool bWeb ) GetUsrPref(false); pPref = m_pUsrPref.get(); } + assert(pPref && "pPref is set by here"); FieldUnit eOldMetric = pPref->GetMetric(); if(eOldMetric != eMetric) pPref->SetMetric(eMetric); |