summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-17 15:42:01 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 09:42:15 +0200
commit6c294a62942c3fd9b4d5ee131fcf37acd69fc056 (patch)
treeb0bf901640f07ea8dc03c49fca0d60d46f77bb93
parent78f17f316d53f40412aedf9e2ccbedd7761ee88d (diff)
cid#736790 dereference before null check
Change-Id: Ic35477fdccd33199dbb826caa21ada8e9b934c37
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index ab0c63e6d304..45163a22d0b3 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -1206,7 +1206,7 @@ bool getScRangeListForAddress( const OUString& sName, ScDocShell* pDocSh, ScRang
// if a local name ( on the active sheet ) exists this will
// take precedence over a global with the same name
bool bLocalName = false;
- if ( !xNameAccess->hasByName( sAddress ) && pDocSh )
+ if ( !xNameAccess->hasByName( sAddress ) )
{
// try a local name
ScDocument* pDoc = pDocSh->GetDocument();