diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 15:51:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:22 +0000 |
commit | 3f85d01f91f95f6149cf2986a5e1f2195a28858d (patch) | |
tree | 41cf632c2b63ed629d93b44fa722a577a6d9edc5 /sw | |
parent | a3a6829ee5bde31180a59f14e803c514f42e9312 (diff) |
coverity#735952 Dereference after null check
Change-Id: Ia244c5668cd73c7d25e30c0b370cbf17bec85935
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 51a1484fa41b..ff3168b38a9b 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -3021,6 +3021,9 @@ const sal_uInt8* WW8PLCFx_Fc_FKP::HasSprm( sal_uInt16 nId ) return 0; } + if (!pFkp) + return 0; + const sal_uInt8* pRes = pFkp->HasSprm( nId ); if( !pRes ) |