diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-07 20:42:07 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 01:21:23 -0600 |
commit | 7feb0958ffa5b4d77665d17cd5cc0a9f4460341f (patch) | |
tree | 00fd0ecbea0fbffef171ea3ff3d23d8af5c9b887 /sc | |
parent | ec09eac8c1bbd3aa659c28255e0caa08be03ef7d (diff) |
coverity#704725 Unchecked dynamic cast
Change-Id: I524fe7b4ac1cc9a78b2295ec27730dded415bd02
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 3095dfa62bbc..786a41a62cca 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -204,7 +204,11 @@ void ScTabViewShell::Activate(sal_Bool bMDI) if ( pChildWnd ) { IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow()); - pRefDlg->ViewShellChanged(); + assert(pRefDlg); + if(pRefDlg) + { + pRefDlg->ViewShellChanged(); + } } } } |