diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx
index 8c7bfb978293..55a705af0c60 100644
--- a/sw/source/filter/html/htmlfly.cxx
+++ b/sw/source/filter/html/htmlfly.cxx
@@ -1249,6 +1249,7 @@ static Writer& OutHTML_FrmFmtTableNode( Writer& rWrt, const SwFrmFmt& rFrmFmt )
if( pTxtNd )
aCaption = pTxtNd->GetTxt();
+ if( pTblNd )
{
HTMLSaveData aSaveData( rHTMLWrt, pTblNd->GetIndex()+1,
pTblNd->EndOfSectionIndex(),