Issue 105958

Summary: Crash when pasting slides in Impress with active accessibility
Product: Impress Reporter: groucho266
Component: codeAssignee: stefan.baltzer
Status: CLOSED FIXED QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P2 CC: eric.savary, issues
Version: OOo 1.0.0   
Target Milestone: OOo 3.2   
Hardware: All   
OS: Solaris   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 99999    

Description groucho266 2009-10-16 12:27:24 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
Comment 1 groucho266 2009-10-16 12:28:07 UTC
Note that accessibility support has to be active.
Comment 2 groucho266 2009-10-16 12:35:34 UTC
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.
Comment 3 groucho266 2009-10-16 16:10:41 UTC
Fixed by adding IndexOutOfBoundsException to the list of supported exceptions of
getAccessibleChild().
Comment 4 groucho266 2009-10-19 14:30:37 UTC
@es: Please verify.
Comment 5 eric.savary 2009-10-26 14:12:49 UTC
Reassigned
Comment 6 stefan.baltzer 2009-10-26 16:12:10 UTC
Verified in CWS impressaccessiblity6.
Comment 7 stefan.baltzer 2009-10-26 16:13:05 UTC
Reassigned to me.
Comment 8 stefan.baltzer 2009-12-07 11:35:49 UTC
OK in OOO320_m7. Closed.