Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table cell must always contain at least a paragraph #9004

Merged
merged 3 commits into from
Feb 8, 2021
Merged

Table cell must always contain at least a paragraph #9004

merged 3 commits into from
Feb 8, 2021

Conversation

niegowski
Copy link
Contributor

Suggested merge commit message (convention)

Fix (table): Editor should not crash while downcasting in the data pipeline if any cell does not contain at least an empty paragraph. Closes #8941. Closes #8917. Closes #8979.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

mat128 and others added 3 commits January 27, 2021 16:03
Previously, it was possible for table cells to be entirely empty.
However, a recent change introduced in 93dbbf9 changed the evaluation order for table cell children.

This led to calling hasAnyAttribute on a null reference, which is not supported.

Move isSingleParagraph check prior to hasAnyAttribute. isSingleParagraph is correctly calculated because it relies on the childCount for the table cell.

Fixes #8941
Fixes #8917
@niegowski niegowski requested a review from oleq February 8, 2021 15:58
@oleq oleq merged commit 11a0c38 into master Feb 8, 2021
@oleq oleq deleted the i/8941 branch February 8, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants