summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 11:01:18 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 09:42:16 +0200
commitadefb376c68692d0063b75e5946565e71c7cfcce (patch)
tree6b3fd392d714edb22900928a67e45fd0ee5f2866
parent5a3290af0b4d0390190bbb00312824c0b9495cec (diff)
cid#736794 dereference before null check
Change-Id: Ic7838b753757fd86fc2316475d38cbd3b4529de5
-rw-r--r--sc/source/ui/view/viewfun3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index e77b3043038d..5b915c75aaf4 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -1383,7 +1383,7 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc,
if ( nFlags & IDF_OBJECTS )
{
- ScModelObj* pModelObj = ( pDocSh ? ScModelObj::getImplementation( pDocSh->GetModel() ) : NULL );
+ ScModelObj* pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() );
if ( pPage && pModelObj )
{
bool bSameDoc = ( rClipParam.getSourceDocID() == pDoc->GetDocumentID() );