Issue 36127 - API: svtools.AccessibleTabBarPage
Summary: API: svtools.AccessibleTabBarPage
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 11:11 UTC by chne
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
the accessible tree (119.86 KB, text/plain)
2004-10-26 11:16 UTC, chne
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2004-10-26 11:11:19 UTC
while creating environment for svtools.AccessibleTabBarPage the test iterates
over the accessible tree. On one point it seems that one node has a child with
content null. This causes an NullPointerExecption.
While closing this document the office crashes.
To reproduce this behavior just start your office with parameter

"-accept=socket,host=0,port=8100;urp;" 

and call inside a solar shell:

checkapi -o  svtools.AccessibleTabBarPage

The last lines of the log output of the test:
LOG>     56,():com.sun.star.comp.toolkit.AccessibleWindow
LOG>         StateType contains SHOWING: true
LOG>       40,Slides():com.sun.star.comp.toolkit.AccessibleWindow
LOG>             StateType contains SHOWING: true
LOG>         63,():com.sun.star.comp.toolkit.AccessibleToolBox
LOG>                 StateType contains SHOWING: true
LOG>           44,():com.sun.star.comp.toolkit.AccessibleToolBoxItem
LOG>                     The boundary Rectangle is (0,0) (15,15)
LOG>                     StateType contains SHOWING: true
Exception while getting Environment java.lang.NullPointerException

Attached you will find the log of the accessible tree the  tests iterates over.

Not: currently it is not possible to create such a tree in a solar shell. This
comes with integration of qadev19. But the nullpointer you will see.
Comment 1 chne 2004-10-26 11:16:58 UTC
Created attachment 18666 [details]
the accessible tree
Comment 2 chne 2004-10-26 11:17:49 UTC
.
Comment 3 malte_timmermann 2004-11-03 14:06:36 UTC
tbe...
Comment 4 thomas.benisch 2004-11-04 11:32:59 UTC
TBE->CN: For the crash of the office (draw) I wrote #i36665#. Therefore I
propose to set 
the priority of this task to 3.
Comment 5 chne 2004-11-04 11:34:56 UTC
becasue the crash results not of this bug => Prio 3
Comment 6 thomas.benisch 2004-11-04 11:41:23 UTC
accepted
Comment 7 thomas.benisch 2004-11-05 10:43:15 UTC
The java.lang.NullPointerException is thrown in
the recursively called getAccessibleObjectForRole(),
because xacc is null. In order to get an object of a
certain accessible role the whole accessibility hierarchy
is searched for.

The problem in this task is the 'Pages' floating window
(accessible name: Slides) in draw. For this object
getAccessibleChildCount() returns 3, but one of the
children is null.

Therefore all accessibility API tests for objects,
which are found in the accessibility hierarchy AFTER
the 'Pages' object will fail. API tests for objects
which are found BEFORE the 'Pages' object will succeed.

TBE->CN:
As already mentioned in #i26685# the implementation of
getAccessibleObjectForRole() should be modified in that
way, that one checks, if a child is null before calliing
getAccessibleObjectForRole() again. If a child
is null an error message can be printed, but the
search should be continued. Don't forget to coordinate
your work with SG!!!

TBE->AF:
Nevertheless the problem of the 'Pages' object in draw
should be fixed.
Comment 8 groucho266 2004-11-05 13:54:45 UTC
Accepted.
Comment 9 ooo 2004-12-01 15:20:16 UTC
set to prio4
Comment 10 thomas.benisch 2005-03-03 13:21:16 UTC
*** Issue 43843 has been marked as a duplicate of this issue. ***
Comment 11 groucho266 2005-04-11 17:25:44 UTC
Changing target.
Comment 12 groucho266 2005-05-24 13:44:49 UTC
This may have been fixed in CWS impress51.
Comment 13 groucho266 2005-05-24 13:45:34 UTC
Due to resource constraints I set the target to OOo Later.
Comment 14 chne 2005-09-07 11:31:19 UTC
add keyword "accessibility"
Comment 15 mdxonefour 2005-09-29 10:57:56 UTC
re-targeted to OOo 3.0
Comment 16 groucho266 2006-07-04 15:53:44 UTC
Target change.
Comment 17 Martin Hollmichel 2008-01-25 16:43:48 UTC
set target 3.0
Comment 18 groucho266 2008-05-27 16:44:51 UTC
Retargeted to OOo 3.x due to time constraints.
Comment 19 malte_timmermann 2008-09-30 16:36:19 UTC
Removed Accessibility Keyword.

This is an automatic (Accessibility) API testing, and results of this don't
actually reflect the Accessibility of the product.

We are not aware of any Accessibility issue related to this API test scenario.
Comment 20 Marcus 2017-05-20 11:27:31 UTC
Reset assigne to the default "issues@openoffice.apache.org".