Kaydet (Commit) 78213dfe authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158075 Dereference after null check

Change-Id: I0143ec3dd07d4a56f9ce71ab877593c0b23a05c3
üst 710a7dd4
...@@ -1980,7 +1980,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos ) ...@@ -1980,7 +1980,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos )
case '/': case '/':
if ( aFlags.bAddNonBrkSpace ) if ( aFlags.bAddNonBrkSpace )
{ {
LanguageType eLang = (bGetLanguage && pAktTxtNd) LanguageType eLang = bGetLanguage
? pAktTxtNd->GetLang( nSttPos ) ? pAktTxtNd->GetLang( nSttPos )
: LANGUAGE_SYSTEM; : LANGUAGE_SYSTEM;
...@@ -2037,7 +2037,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos ) ...@@ -2037,7 +2037,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos )
continue; // do not check further continue; // do not check further
} }
LanguageType eLang = (bGetLanguage && pAktTxtNd) LanguageType eLang = bGetLanguage
? pAktTxtNd->GetLang( nSttPos ) ? pAktTxtNd->GetLang( nSttPos )
: LANGUAGE_SYSTEM; : LANGUAGE_SYSTEM;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment