Apache OpenOffice (AOO) Bugzilla – Issue 105958
Crash when pasting slides in Impress with active accessibility
Last modified: 2009-12-07 11:35:49 UTC
How to reproduce: 1. Create new Impress document. 2. Create one or more shapes on the first slide. 3. In the slide sorter bar copy and paste the slide. 4. In the dialog box that pops up click OK to insert after the current slide. => crash on Solaris
Note that accessibility support has to be active.
The crash is caused by an unexpected exception: 1. The XAccessibleContext::getAccessibleChild method is declared to raise (among others) the IndexOutOfBoundsException. 2. The implementing methods for the Impress edit view (in classes AccessibleDocumentViewBase and AccessibleDrawDocumentView) dropped this exception. 3. When a slide is copied and pasted then, for a reason that is not important here, this very exception is thrown in AccessibleDrawDocumentView. Because the exception is not part of the throw part of the declaration it is treated as unexpected exception and therefore leads to an abortion of the whole process. The root cause of all this is of course item 2: dropping the IndexOutOfBoundsException from the declaration.
Fixed by adding IndexOutOfBoundsException to the list of supported exceptions of getAccessibleChild().
@es: Please verify.
Reassigned
Verified in CWS impressaccessiblity6.
Reassigned to me.
OK in OOO320_m7. Closed.