summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-09 09:12:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-09 09:43:15 +0100
commit13c01aac250da64241d780cb6fb8ed173c517f06 (patch)
tree4196e57e355f9fb628179b0ac61916900e4009fb /basctl
parent6300794a2c896aa003b00cb979d1985843385a01 (diff)
coverity#1209811 Dereference before null check
Change-Id: I7e3778e5203438bc5db942c813a03896d7df895b
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 20b46d0f0981..93e0f048339b 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1136,7 +1136,7 @@ OUString EditorWindow::GetActualSubName( sal_uLong nLine )
for( sal_uInt16 i=0; i < pMethods->Count(); i++ )
{
SbxVariable* p = PTR_CAST( SbMethod, pMethods->Get( i ) );
- SbMethod* pMeth = p ? PTR_CAST( SbMethod, p ) : NULL;
+ SbMethod* pMeth = PTR_CAST( SbMethod, p );
if( pMeth )
{
sal_uInt16 l1,l2;