To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63514
                  Issue #:|63514
                  Summary:|OOo crashes when passing errornous XFrame
                          |implementation to css.frame.Desktop
                Component:|framework
                  Version:|680m160
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|cd
              Reported by:|fs





------- Additional comments from [EMAIL PROTECTED] Thu Mar 23 02:09:24 -0800 
2006 -------
The attached Java test case creates a floating frame and plugs a
com.sun.star.inspection.ObjectInspector into it.

The script is errornous in that it passes an "incomplete" XFrame implementation
to the controller's attachFrame method. That is, the given XFrame, instead of
pointing to a "real" OOo-implemented Frame component, points to a Java wrapper
which implements only a few, but not all, Frame-related interfaces.

Now when you execute the Java program (you need to start OOo with
"-accept=socket,host=localhost,port=8100;urp" to enable the test case to connect
to OOo), while no document but only the start-component is opened, then OOo
crashs. This is because in the framework, somebody queries the given XFrame for
an XPropertySet, and uses the latter unchecked.

Note that speaking strictly, the Java program is buggy in that it passes a wrong
XFrame implementation to the Desktop.getFrames().append() method. However, this
should not lead to OOo crashing.

FS->CD: I suggest using UNO_QUERY_THROW in Frame::impl_setCloser, when querying
for the XPropertySet interface.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to