diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 17:43:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 17:43:04 +0000 |
commit | e14c70c0d5094360a288fed3f428391e337b95de (patch) | |
tree | cf580d6b1493ff2dfb60dd3c3368ea5ad65ebc08 /sd | |
parent | cb5488b20c5fe102b730574bacc8ab8cda0e1145 (diff) |
coverity#983379 Dereference before null check
Change-Id: I357e0618bf31983466566d6b36f63f7830f0a296
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 70a521c05323..08f7e5c04c39 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1487,13 +1487,7 @@ sal_Bool SdPageObjsTLB::NotifyMoving( } // Update the tree list. - if (pTarget == NULL) - { - rpNewParent = 0; - rNewChildPos = 0; - return sal_True; - } - else if (GetParent(pDestination) == NULL) + if (GetParent(pDestination) == NULL) { rpNewParent = pDestination; rNewChildPos = 0; |