From 112554741039eda3fbeef3f89b22c348b3718655 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Feb 2014 12:41:29 +0200 Subject: cid#705962 dereference before null check Change-Id: Id31913ea90c32f869677a54d522a8bc089c7290c --- sw/source/ui/uno/unotxdoc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 9e3ca6b04ae2..f6af0861fc19 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -3046,10 +3046,10 @@ void SAL_CALL SwXTextDocument::render( { // #i96167# haggai: delete ViewOptionsAdjust here because it makes use // of the shell, which might get destroyed in lcl_DisposeView! - if (m_pRenderData && m_pRenderData->IsViewOptionAdjust()) + if (m_pRenderData->IsViewOptionAdjust()) m_pRenderData->ViewOptionAdjustStop(); - if (m_pRenderData && m_pRenderData->HasPostItData()) + if (m_pRenderData->HasPostItData()) m_pRenderData->DeletePostItData(); if (m_pHiddenViewFrame) { -- cgit