winaccessibility/source/service/AccDescendantManagerEventListener.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a8a0d0fa151aee294fc3744c6fbc0729b2a7bcee Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 19 17:32:06 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Oct 20 20:28:03 2018 +0200 pvs-studio: pointer was utilized before it was verified against nullptr Change-Id: I601d30f8222f7c666eab4727c84e612484e01eed Reviewed-on: https://gerrit.libreoffice.org/62067 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx index 3f865cd2e27d..c8fc771ae503 100644 --- a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx +++ b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx @@ -183,7 +183,7 @@ bool AccDescendantManagerEventListener::NotifyChildEvent(short nWinEvent,const A XAccessible* pAcc = xChild.get(); pAgent->NotifyAccEvent(nWinEvent, pAcc); - if (pAgent && pAgent->IsStateManageDescendant(m_xAccessible.get()) + if (pAgent->IsStateManageDescendant(m_xAccessible.get()) && (nWinEvent == UM_EVENT_SELECTION_CHANGED_REMOVE)) { pAgent->DeleteAccObj( pAcc ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits