To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=42533
Issue #:|42533
Summary:|Cannot add certain text documents to Web Page Wizard
Component:|Installation
Version:|680m78
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|code
Assigned to:|bc
Reported by:|sb
------- Additional comments from [EMAIL PROTECTED] Fri Feb 11 04:41:14 -0800
2005 -------
- "File - Wizards - WebPage..."
- On "2. Documents" use "Add..." to add the attached test.txt (which contains
both Unix-style and DOS-style line ends).
- A message box "An unexpected error occured while validating the file: [...]"
appears, on stderr you get the below output, and the document is not added.
java.lang.NullPointerException
at com.sun.star.wizards.web.data.CGDocument.validate(CGDocument.java:222)
at com.sun.star.wizards.web.WWD_Startup.checkDocument(WWD_Startup.java:778)
at com.sun.star.wizards.web.WWD_Events$LoadDocs.run(WWD_Events.java:1125)
at com.sun.star.wizards.web.WWD_Events.addDocument(WWD_Events.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.star.wizards.ui.event.MethodInvocation.invoke(MethodInvocation.java:112)
at
com.sun.star.wizards.ui.event.AbstractListener.invoke(AbstractListener.java:110)
at
com.sun.star.wizards.ui.event.CommonListener.actionPerformed(CommonListener.java:79)
The reason is that CGDocument analyzes the given document to be of type
writer_Text_encoded, calls loadComponentFromURL on it, which returns null as
properties which are necessary for this filter are not included in the call, but
CGDocument does not check for a null return. (AS mentioned that
com.sun.star.document.StandAloneDocumentInfo might be more appropriate here, but
might be broken at the moment.)
---------------------------------------------------------------------
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]