summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-10 20:27:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-10 21:07:56 +0100
commit5cfe8815358956795501cb2d471ff5389e219fb6 (patch)
tree3f80dddf3b153c091608ab43abc5c939e01b3bab
parent97865e0a72272d5be8c65d636eafdba04736a58d (diff)
coverity#705931 Dereference before null check
Change-Id: I7b245202daf5084a9cd73d0fb2df88abb2db4e78
-rw-r--r--sw/source/core/text/txtfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 91a21d2d0316..1736839c7b1e 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -1977,7 +1977,7 @@ KSHORT SwTxtFrm::GetParHeight() const
// FME, OD 08.01.2004 #i11859# - refactoring and improve code
const SwLineLayout* pLineLayout = GetPara();
- KSHORT nHeight = pLineLayout->GetRealHeight();
+ KSHORT nHeight = pLineLayout ? pLineLayout->GetRealHeight() : 0;
if( GetOfst() && !IsFollow() ) // Ist dieser Absatz gescrollt? Dann ist unsere
nHeight *= 2; // bisherige Hoehe mind. eine Zeilenhoehe zu gering
// OD 2004-03-04 #115793#