diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-18 01:13:41 -0600 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-02-18 21:36:57 +0000 |
commit | e681622f3dcdd979e5c1b261ccc671d2fe9d0f37 (patch) | |
tree | c6d754a8901ddc42fb85e9b95408ad1c4911d9c7 /avmedia | |
parent | 2eef912649d277e05203bc79c26f2be5b096a292 (diff) |
coverity#704551 Dereference after null check
Change-Id: I47aa14ba58d993fa8ed20c8f0d99e92f18dc53e6
Reviewed-on: https://gerrit.libreoffice.org/2214
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediacontrol.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx index 38d947a7279b..cd225612db37 100644 --- a/avmedia/source/framework/mediacontrol.cxx +++ b/avmedia/source/framework/mediacontrol.cxx @@ -559,7 +559,10 @@ IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p ) } update(); - p->Invalidate( INVALIDATE_UPDATE ); + if(p) + { + p->Invalidate( INVALIDATE_UPDATE ); + } return 0; } |