You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/09/02 14:46:01 UTC
[Bug 58315] New: NullPointerException by
XSSFRichTextString.getFontAtIndex
https://bz.apache.org/bugzilla/show_bug.cgi?id=58315
Bug ID: 58315
Summary: NullPointerException by
XSSFRichTextString.getFontAtIndex
Product: POI
Version: 3.12-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: florian.lindermaier@lfst.bayern.de
Created attachment 33058
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33058&action=edit
Sample Project To Show the bug
Hello,
i need to find striked out Characters in a Cell. In my Cell is a String
containing "320 338 350". " 388" is striked out and has a blue color.
My code breaks when trying to retriev the Font(richText.getFontAtIndex(i)) with
i==2. At i==2 the Font changes from a the rich text font(getFontAtIndex is
returning a Font) to the cell font(getFontAtIndex should return null).
for (int i = richText.length() - 1; i >= 0; i--) {
Font f = richText.getFontAtIndex(i);
if (f != null && f.getStrikeout()) {
tmpCellContent.deleteCharAt(i);
}
}
I attached a sample project. Run the unit test
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 58315] NullPointerException by
XSSFRichTextString.getFontAtIndex
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58315
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
I put in a simple fix via r1701382, you can verify the changes with a recent
nightly build or the upcoming 3.13-beta2.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 58315] NullPointerException by
XSSFRichTextString.getFontAtIndex
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58315
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 58315] NullPointerException by
XSSFRichTextString.getFontAtIndex
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58315
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmarkmurph@yahoo.com
--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
*** Bug 59098 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org