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 2016/02/19 08:26:29 UTC
[Bug 59030] New: Nullpointer Exception while accessing table cell
alignment
https://bz.apache.org/bugzilla/show_bug.cgi?id=59030
Bug ID: 59030
Summary: Nullpointer Exception while accessing table cell
alignment
Product: POI
Version: 3.14-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XWPF
Assignee: dev@poi.apache.org
Reporter: dpbabu@gmail.com
By Default, table cell doesn't have alignment details even though it is
considered as TOP alignment in MS-WORD. So which accessing cell alignment, the
method XWPFTableCell.getVerticalAlignment() is throwing nullpointerException
--
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 59030] Nullpointer Exception while accessing table cell
alignment
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59030
Tim Allison <ta...@mitre.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Tim Allison <ta...@mitre.org> ---
r1731257
Thank you for the pull request w/ test document. I made a small modification
to return "null" if nothing is specified. I agree that the Word Application
assumes TOP if alignment is not specified, but I'd like to keep the code closer
to the xml.
If others disagree, we can change it back.
The mods you suggest do fix the NPE, and I've included your test and test docx.
Thank you!
--
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 59030] Nullpointer Exception while accessing table cell
alignment
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59030
--- Comment #3 from Javen O'Neal <on...@apache.org> ---
Behavior changed to return default of XWPFVertAlign in r1746625.
Restored original behavior to return null if alignment is not set in r1782130
and r1782225.
--
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 59030] Nullpointer Exception while accessing table cell
alignment
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59030
Prasadu <dp...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Prasadu <dp...@gmail.com> ---
I already fixed. Please refer https://github.com/apache/poi/pull/30
--
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