tdf#120703 PVS: check proper pointer (possible nullprt dereference)

V547 Expression 'pFormat' is always true.

Change-Id: I11a32f903a08296fb9e6732032b7c7f00cb8aced
Reviewed-on: https://gerrit.libreoffice.org/63233
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index ee8f530..0d99f14 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -3564,7 +3564,7 @@
                SwFormatColl *const pTmpFormat =
                    SwUnoCursorHelper::GetCurTextFormatColl(*m_pImpl->m_pTableCursor, false);
                OUString sRet;
                if(pFormat)
                if (pTmpFormat)
                    sRet = pTmpFormat->GetName();
                aRet <<= sRet;
            }