[Libreoffice-bugs] [Bug 139446] New: using jOpenDocument-1.3.jar read ods created by LibreOffice 7.0.4.2 has error
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 6 10:53:58 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=139446
Bug ID: 139446
Summary: using jOpenDocument-1.3.jar read ods created by
LibreOffice 7.0.4.2 has error
Product: LibreOffice
Version: 7.0.4.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: 3291467146 at qq.com
Description:
using jOpenDocument-1.3.jar read ods file created by LibreOffice 7.0.4.2 has
error.
using jOpenDocument-1.3.jar read ods file created by LibreOffice 7.0.4.2 is OK.
Steps to Reproduce:
1.using libreoffice 7.0.4.2 craete a ods file.
2.use java code flow read ods file
File file = new File(srcFile);
final Sheet sheet = SpreadSheet.createFromFile(file).getSheet(0);
int Column = sheet.getColumnCount();
int Row = sheet.getRowCount();
logger.error("3.3:" + sheet.getCellAt(3, 3).getTextValue());//here Exception
3.will have Exception
java.lang.NullPointerException: Cannot invoke
"org.jopendocument.dom.OOXML.getVersion()" because "<local3>" is null
at org.jopendocument.dom.text.TextNode.getCharacterContent(Unknown
Source) ~[jOpenDocument-1.3.jar:2.6.9]
at
org.jopendocument.dom.text.TextNode.getChildrenCharacterContent(Unknown Source)
~[jOpenDocument-1.3.jar:2.6.9]
at org.jopendocument.dom.spreadsheet.Cell.getTextValue(Unknown Source)
~[jOpenDocument-1.3.jar:2.6.9]
at org.jopendocument.dom.spreadsheet.Cell.getTextValue(Unknown Source)
~[jOpenDocument-1.3.jar:2.6.9]
Actual Results:
code return error
Expected Results:
java code jOpenDocument can read cell
Reproducible: Always
User Profile Reset: Yes
Additional Info:
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210106/39e7ab58/attachment.htm>
More information about the Libreoffice-bugs
mailing list